tldraw/jest.config.js

20 lines
643 B
JavaScript
Raw Normal View History

2021-06-21 21:35:28 +00:00
module.exports = {
roots: ['<rootDir>'],
testEnvironment: 'jsdom',
2021-06-22 18:13:16 +00:00
moduleFileExtensions: ['ts', 'tsx', 'mjs', 'js', 'json', 'jsx'],
2021-06-21 21:35:28 +00:00
testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|.next)[/\\\\]'],
2021-06-22 21:11:47 +00:00
transformIgnorePatterns: ['node_modules/(?!(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-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',
},
}