fix: stop the web tests from running in node environment

This commit is contained in:
Tom French 2022-08-24 21:13:37 +01:00
parent 3118cf26e3
commit 0e0b46ed5e

View file

@ -7,7 +7,7 @@ module.exports = {
.concat(['mjs', 'js', 'ts', 'json']),
setupFilesAfterEnv: ['<rootDir>/src/mocks/setup.js'],
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/lib/', 'index.web.test.js'],
testPathIgnorePatterns: ['/node_modules/', '/lib/', '.+/index.web.test.js'],
transformIgnorePatterns: ['__mocks__'],
globals: {
__TESTING__: true