26 lines
700 B
JavaScript
26 lines
700 B
JavaScript
module.exports = {
|
|
projects: [
|
|
{
|
|
displayName: 'test',
|
|
testPathIgnorePatterns: [
|
|
'build',
|
|
'<rootDir>/node_modules/(?!(jest-test))',
|
|
],
|
|
modulePaths: ['<rootDir>', '<rootDir>/node_modules/'],
|
|
moduleDirectories: ['src'],
|
|
setupFiles: ['<rootDir>/test/setupTests.js'],
|
|
transform: {
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
'^.+\\.js$': 'babel-jest',
|
|
},
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
},
|
|
{
|
|
runner: 'jest-runner-eslint',
|
|
displayName: 'lint',
|
|
testMatch: ['<rootDir>/test/**/*.test.js'],
|
|
},
|
|
],
|
|
}
|