Allow popular test path conventions (#400)

This commit is contained in:
Dan Abramov
2016-08-08 14:23:12 +01:00
committed by GitHub
parent b16f6c4c60
commit d21b7da85f

View File

@@ -20,6 +20,12 @@ module.exports = (resolve, rootDir) => {
resolve('config/polyfills.js')
],
setupTestFrameworkScriptFile: resolve('config/jest/environment.js'),
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
// Allow three popular conventions:
// **/__tests__/*.js
// **/*.test.js
// **/*.spec.js
testRegex: '(__tests__/.*|\\.(test|spec))\\.js$',
testEnvironment: 'node',
verbose: true
};