Set test environment per test file

This commit is contained in:
TC
2021-06-03 21:43:07 +02:00
parent b26748ded8
commit b8c6ebfa53
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,5 @@ module.exports = {
globals: { globals: {
__APP__: undefined, // A different app will be launched in each test environment __APP__: undefined, // A different app will be launched in each test environment
}, },
testEnvironment: "./tests/environment",
testTimeout: 30000, // 30s testTimeout: 30000, // 30s
}; };

View File

@ -1,3 +1,7 @@
/**
* @jest-environment ./tests/environment
*/
describe("YouTube Music App", () => { describe("YouTube Music App", () => {
const app = global.__APP__; const app = global.__APP__;