Skip to content

Commit

Permalink
feat(filename-pattern): returned the convention with the results
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Sep 24, 2021
1 parent 0e1bdb5 commit acbfa26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default async function ({projectRoot}) {
);

return {
testFilenamePattern: 'src/**/*.test.js',
devDependencies: ['jest', 'jest-when'],
scripts: {'test:unit:base': 'DEBUG=any jest --testPathPattern=src/.*\\.test\\.js$'},
eslintConfigs,
Expand Down
1 change: 1 addition & 0 deletions src/scaffolder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('scaffolder', () => {
`${pathToCreatedSrcDirectory}/canary.test.js`
);
expect(results).toEqual({
testFilenamePattern: 'src/**/*.test.js',
devDependencies: ['jest', 'jest-when'],
scripts: {'test:unit:base': 'DEBUG=any jest --testPathPattern=src/.*\\.test\\.js$'},
eslintConfigs,
Expand Down

0 comments on commit acbfa26

Please sign in to comment.