1 // Stolen from: https://github.com/ipfs/jest-environment-aegir/blob/master/src/index.js
2 // Overcomes error from jest internals.. this thing: https://github.com/facebook/jest/issues/6248
3 // Mostly needed for making OpenPGP.js works
5 const JSDOMEnvironment
= require('jest-environment-jsdom').default;
7 class MyEnvironment
extends JSDOMEnvironment
{
8 constructor({ globalConfig
, projectConfig
}, context
) {
15 ...projectConfig
.globals
,
35 async
setup() {} // eslint-disable-line
37 async
teardown() {} // eslint-disable-line
40 module
.exports
= MyEnvironment
;