tldraw/jest.config.js

21 lines
692 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-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',
},
}