-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 908 Bytes
/
Copy pathjest.config.js
File metadata and controls
26 lines (26 loc) · 908 Bytes
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
module.exports = {
// verbose: true, // Uncomment for detailed test output
collectCoverage: true,
coverageDirectory: 'coverage',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: ['node'],
},
transform: {
'^.+\\.(ts|js)$': ['babel-jest'],
},
setupFilesAfterEnv: ["./test/helpers/jest.setup.ts"],
transformIgnorePatterns: ["/node_modules/(?!lit-html).+\\.js"],
testPathIgnorePatterns: ['/node_modules/', '/lib/'],
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\.ttl$': '<rootDir>/__mocks__/fileMock.js', // '\\.ttl$'
},
roots: ['<rootDir>/src', '<rootDir>/test', '<rootDir>/__mocks__'],
moduleNameMapper: {
'\\.(png|jpe?g|gif|webp|avif|svg)$': '<rootDir>/__mocks__/fileMock.js',
'\\.module\\.css$': 'identity-obj-proxy',
'\\.css$': '<rootDir>/__mocks__/fileMock.js',
'^SolidLogic$': 'solid-logic',
'^\\$rdf$': 'rdflib'
}
}