forked from FuelLabs/swayswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
33 lines (31 loc) · 978 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { Config } from '@jest/types';
export const config: Config.InitialOptions = {
preset: 'ts-jest/presets/default-esm',
globals: {
'ts-jest': {
useESM: true,
},
},
testTimeout: 20000,
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/**/?(*.)+(spec|test).[jt]s?(x)'],
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/cypress'],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
reporters: ['default', 'github-actions'],
setupFiles: ['dotenv/config'],
setupFilesAfterEnv: ['@swayswap/test-utils/setup.ts'],
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/**/*d.ts',
'!<rootDir>/src/**/*test.{ts,tsx}',
'!<rootDir>/src/**/test-*.{ts}',
'!<rootDir>/src/**/__mocks__/**',
'!<rootDir>/src/types/**',
],
moduleNameMapper: {
'.+\\.(css|scss|png|jpg|svg)$': 'jest-transform-stub',
'~/(.*)$': '<rootDir>/src/$1',
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};
export default config;