forked from Shopify/hydrogen-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest-e2e.config.ts
More file actions
24 lines (22 loc) · 839 Bytes
/
Copy pathjest-e2e.config.ts
File metadata and controls
24 lines (22 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// eslint-disable-next-line node/no-extraneous-import
import type {Config} from '@jest/types';
const config: Config.InitialOptions = {
preset: 'ts-jest',
testMatch: ['**/playground/**/*.(spec|test).[jt]s?(x)'],
testTimeout: process.env.CI ? 45000 : 10000,
watchPathIgnorePatterns: ['<rootDir>/temp'],
globalSetup: './scripts/jest-e2e-global-setup.ts',
globalTeardown: './scripts/jest-e2e-global-teardown.ts',
testEnvironment: './scripts/jest-e2e-env.js',
setupFilesAfterEnv: ['./scripts/jest-e2e-suite-setup.ts'],
globals: {
'ts-jest': {
tsconfig: './packages/playground/tsconfig.json',
},
},
moduleNameMapper: {
// captures the module name with '.js', and removes the '.js' part so that the module resolver can find the '.ts' file
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};
export default config;