forked from bangle-io/banger-editor
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.cjs
23 lines (23 loc) · 844 Bytes
/
jest.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
testRunner: 'jest-circus/runner',
testPathIgnorePatterns: [`<rootDir>/tooling/e2e-tests/`, `<rootDir>/.yarn`],
transformIgnorePatterns: [
'node_modules/(?!((@popperjs)|(debounce-fn)|(@bangle.dev/pm)|(prosemirror-utils-bangle))/)',
],
setupFilesAfterEnv: ['@bangle.dev/jest-utils'],
coverageReporters: ['json', 'lcov', 'text', 'clover'],
coveragePathIgnorePatterns: [
`<rootDir>/.yarn`,
'/node_modules/',
'/test-helpers/',
],
// collectCoverage: true,
clearMocks: true,
testEnvironment: 'jsdom',
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/tooling/bangle-scripts/fileMock.cjs',
'\\.(css)$': '<rootDir>/tooling/bangle-scripts/styleMock.cjs',
},
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
};