Skip to content

Commit

Permalink
Update createJestConfig.ts testMatch to allow for other folder… (#159)
Browse files Browse the repository at this point in the history
I like to pair testing files with my source code files so everything is collocated in a file explorer. This shouldn't be a breaking change and will simply allow me to create test files outside of the initially created `test` folder.
  • Loading branch information
kylemh authored and jaredpalmer committed Jul 15, 2019
1 parent 06b9b68 commit f6ecdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createJestConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function createJestConfig(
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: ['src/**/*.{ts,tsx}'],
testMatch: ['<rootDir>/test/**/*.(spec|test).{ts,tsx}'],
testMatch: ['<rootDir>/**/*.(spec|test).{ts,tsx}'],
testURL: 'http://localhost',
rootDir,
watchPlugins: [
Expand Down

0 comments on commit f6ecdc9

Please sign in to comment.