tldraw/jest.config.js

21 lines
639 B
JavaScript
Raw Normal View History

2021-06-21 21:35:28 +00:00
module.exports = {
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['node_modules', '.next'],
2021-07-12 11:17:47 +00:00
transformIgnorePatterns: [
'node_modules/(?!(sucrase|@state-designer/core|@state-designer/react|browser-fs-access)/)',
],
2021-06-21 21:35:28 +00:00
transform: {
2021-06-22 18:13:16 +00:00
'^.+\\.(ts|tsx|mjs)$': 'babel-jest',
2021-06-21 21:35:28 +00:00
},
2021-06-22 18:13:16 +00:00
modulePaths: ['<rootDir>', 'node_modules'],
2021-06-23 12:46:46 +00:00
testMatch: ['**/__tests__/**/*test.[t]s?(x)'],
2021-06-21 21:35:28 +00:00
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
moduleNameMapper: {
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__mocks__/fileMock.js',
},
}