forked from Synthetixio/js-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
26 lines (25 loc) · 969 Bytes
/
jest.config.js
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
require.resolve('babel-jest');
require.resolve('jest-environment-jsdom');
module.exports = {
roots: ['<rootDir>'],
modulePaths: ['<rootDir>'],
globalSetup: '<rootDir>/jest.global.js',
setupFilesAfterEnv: ['<rootDir>/v2/ui/tests/setup.js'],
testEnvironment: 'jest-environment-jsdom',
testMatch: ['<rootDir>/**/*.test.{js,jsx,ts,tsx}'],
testPathIgnorePatterns: ['<rootDir>/v3/subgraphs/'],
collectCoverageFrom: [
'<rootDir>/packages/**/*.{js,jsx,ts,tsx}',
'<rootDir>/tools/codegen-graph-ts/**/*.d.{js,jsx,ts,tsx}',
'<rootDir>/tools/generate-subgraph-query/**/*.d.{js,jsx,ts,tsx}',
'<rootDir>/v1/**/*.{js,jsx,ts,tsx}',
'<rootDir>/v2/**/*.{js,jsx,ts,tsx}',
'<rootDir>/v3/theme/**/*.{js,jsx,ts,tsx}',
'<rootDir>/v3/libs/**/*.{js,jsx,ts,tsx}',
'<rootDir>/v3/ui/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/**/*.d.ts',
'!<rootDir>/**/*.test.{js,jsx,ts,tsx}',
'!<rootDir>/v2/contracts',
'!<rootDir>/v3/subgraphs',
],
};