-
Notifications
You must be signed in to change notification settings - Fork 12
/
jest.config.js
28 lines (26 loc) · 1.01 KB
/
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
27
28
const jestConfig = require('@itsjonq/zero/jest');
delete jestConfig.roots;
module.exports = Object.assign(jestConfig, {
projects: ['<rootDir>/packages/*/jest.config.js'],
collectCoverageFrom: [
'<rootDir>/packages/components/src/**/*.{js,jsx}',
'<rootDir>/packages/create-styles/src/**/*.{js,jsx}',
'<rootDir>/packages/styles/src/**/*.{js,jsx}',
],
modulePathIgnorePatterns: ['<rootDir>/.remake/'],
testPathIgnorePatterns: ['<rootDir>/.remake/'],
testEnvironment: 'jest-environment-jsdom-sixteen',
moduleNameMapper: {
'^@wp-g2/context': '<rootDir>/packages/context/src/',
'^@wp-g2/create-styles': '<rootDir>/packages/create-styles/src/',
'^@wp-g2/hint': '<rootDir>/packages/hint/src/',
'^@wp-g2/icons': '<rootDir>/packages/icons/src/',
'^@wp-g2/styles': '<rootDir>/packages/styles/src/',
'^@wp-g2/substate': '<rootDir>/packages/substate/src/',
'^@wp-g2/utils': '<rootDir>/packages/utils/src/',
},
testMatch: [
'<rootDir>/packages/*/src/**/*.test.{js,jsx}',
'!<rootDir>/packages/website/**/*',
],
});