Commit baa13b5e authored by tom's avatar tom

change setup

parent ec5c07b1
import dotenv from 'dotenv';
export default async function globalSetup() {
dotenv.config({ path: './configs/envs/.env.jest' });
dotenv.config({ path: './configs/envs/.env.poa_core' });
}
import dotenv from 'dotenv';
dotenv.config({ path: './configs/envs/.env.jest' });
dotenv.config({ path: './configs/envs/.env.poa_core' });
export default undefined;
...@@ -62,7 +62,7 @@ const config: JestConfigWithTsJest = { ...@@ -62,7 +62,7 @@ const config: JestConfigWithTsJest = {
// forceCoverageMatch: [], // forceCoverageMatch: [],
// A path to a module which exports an async function that is triggered once before all test suites // A path to a module which exports an async function that is triggered once before all test suites
// globalSetup: undefined, globalSetup: '<rootDir>/configs/jest/globalSetup.ts',
// A path to a module which exports an async function that is triggered once after all test suites // A path to a module which exports an async function that is triggered once after all test suites
// globalTeardown: undefined, // globalTeardown: undefined,
...@@ -136,7 +136,7 @@ const config: JestConfigWithTsJest = { ...@@ -136,7 +136,7 @@ const config: JestConfigWithTsJest = {
// runner: "jest-runner", // runner: "jest-runner",
// The paths to modules that run some code to configure or set up the testing environment before each test // The paths to modules that run some code to configure or set up the testing environment before each test
setupFiles: [ '<rootDir>/configs/jest/setEnvs.ts' ], // setupFiles: undefined,
// A list of paths to modules that run some code to configure or set up the testing framework before each test // A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [], // setupFilesAfterEnv: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment