tldraw/jest.config.js

19 lines
587 B
JavaScript
Raw Normal View History

2021-06-21 21:35:28 +00:00
module.exports = {
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['node_modules', '.next'],
transformIgnorePatterns: ['node_modules/(?!(sucrase|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',
},
}