Skip to content

Commit

Permalink
use testMatch for jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob McGuinness committed May 18, 2017
1 parent ae60db3 commit 182d2aa
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions packages/availity-workflow-react/test.js
Expand Up @@ -13,11 +13,6 @@ function create() {
// in Jest configs. We need help from somebody with Windows to determine this.
const config = {
collectCoverageFrom: ['**/*.{js,jsx}'],
// setupFiles: [resolve('config/polyfills.js')],
// setupTestFrameworkScriptFile: setupTestsFile,
testPathIgnorePatterns: [
'<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]'
],
testEnvironment: 'node',
testURL: 'http://localhost',
transform: {
Expand All @@ -29,6 +24,21 @@ function create() {
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'
],
testMatch: [
// Ignore the following directories:
// build
// - the build output directory
// .cache
// - the yarn module cache on Ubuntu if $HOME === rootDir
// docs
// - often used to publish to Github Pages
// node_modules
// - ignore tests in dependencies
// scripts
// - directory generated upon eject
'<rootDir>/!(build|docs|node_modules|scripts)/**/__tests__/**/*.js?(x)',
'<rootDir>/!(build|docs|node_modules|scripts)/**/?(*.)(spec|test).js?(x)'
],
globals: settings.globals()
};

Expand Down

0 comments on commit 182d2aa

Please sign in to comment.