influxdb/ui/jest.config.js

36 lines
988 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'],
2018-03-29 23:44:24 +00:00
setupFiles: ['<rootDir>/test/setup.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'],
transformIgnorePatterns: ['/node_modules/(?!dygraphs)'],
2018-02-27 17:55:24 +00:00
},
{
runner: 'jest-runner-eslint',
2018-03-21 23:08:03 +00:00
displayName: 'eslint',
2018-02-27 17:55:24 +00:00
testMatch: ['<rootDir>/test/**/*.test.js'],
},
2018-03-21 23:08:03 +00:00
{
runner: 'jest-runner-tslint',
displayName: 'tslint',
moduleFileExtensions: ['ts', 'tsx'],
testMatch: [
'<rootDir>/test/**/*.test.ts',
'<rootDir>/test/**/*.test.tsx',
],
},
2018-02-27 17:55:24 +00:00
],
2018-02-27 06:08:13 +00:00
}