influxdb/ui/jest.config.js

26 lines
700 B
JavaScript
Raw Normal View History

2018-02-27 06:08:13 +00:00
module.exports = {
2018-02-27 17:55:24 +00:00
projects: [
{
displayName: 'test',
2018-03-03 17:14:40 +00:00
testPathIgnorePatterns: [
'build',
'<rootDir>/node_modules/(?!(jest-test))',
],
2018-02-27 17:55:24 +00:00
modulePaths: ['<rootDir>', '<rootDir>/node_modules/'],
moduleDirectories: ['src'],
setupFiles: ['<rootDir>/test/setupTests.js'],
2018-03-03 03:50:51 +00:00
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
2018-02-27 17:55:24 +00:00
},
{
runner: 'jest-runner-eslint',
displayName: 'lint',
testMatch: ['<rootDir>/test/**/*.test.js'],
},
],
2018-02-27 06:08:13 +00:00
}