-
-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (20 loc) · 812 Bytes
/
jest.config.js
File metadata and controls
21 lines (20 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
roots: ['test/javascript'],
setupFilesAfterEnv: ['./test/javascript/setupTests.js'],
transform: {
'^.+\\.[t|j]sx?$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(highlightjs-(bqn|zig|chapel|jq|roc|cobol)|@ballerina/highlightjs-ballerina|@exercism/highlightjs-(arturo|futhark|uiua|jikiscript))|@exercism/javascript-browser-test-runner|@marijn/find-cluster-break/)',
],
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\.svg$':
'<rootDir>/app/javascript/images/GlobalImageStub.js',
'manifest.json$': '<rootDir>/app/javascript/__mocks__/fileMock.js',
'@/(.*)': '<rootDir>/app/javascript/$1',
'\\.(css)$': 'identity-obj-proxy',
},
testEnvironment: 'jsdom',
}
module.exports = config