From b8c6ebfa53ee649b8c86543e8861a24cbb6f85e7 Mon Sep 17 00:00:00 2001 From: TC Date: Thu, 3 Jun 2021 21:43:07 +0200 Subject: [PATCH] Set test environment per test file --- jest.config.js | 1 - tests/index.test.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 21e1944c..472d5584 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,6 +2,5 @@ module.exports = { globals: { __APP__: undefined, // A different app will be launched in each test environment }, - testEnvironment: "./tests/environment", testTimeout: 30000, // 30s }; diff --git a/tests/index.test.js b/tests/index.test.js index 9ab4bf63..ccb261ca 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -1,3 +1,7 @@ +/** + * @jest-environment ./tests/environment + */ + describe("YouTube Music App", () => { const app = global.__APP__;