Skip to content

Commit

Permalink
feat: added default jest config in new project template (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil authored Apr 30, 2021
1 parent 3a45a08 commit ffce4ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const filestocopy = [
'.gitignore',
'.prettierignore',
'.prettierrc',
'jest.config.js',
'package.json'
];
const emptyfolderarray = ['aura', 'lwc'];
Expand Down
1 change: 1 addition & 0 deletions packages/templates/src/generators/projectGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const filestocopy = [
GITIGNORE,
'.prettierignore',
'.prettierrc',
'jest.config.js',
'package.json'
];
const emptyfolderarray = ['aura', 'lwc'];
Expand Down
6 changes: 6 additions & 0 deletions packages/templates/src/templates/project/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config');

module.exports = {
...jestConfig,
modulePathIgnorePatterns: ['<rootDir>/.localdevserver']
};

0 comments on commit ffce4ed

Please sign in to comment.