Skip to content

Commit

Permalink
Add config for JS users
Browse files Browse the repository at this point in the history
  • Loading branch information
ratson committed Aug 27, 2021
1 parent 36162cf commit 21a79ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/generator/src/generators/app-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export class AppGenerator extends Generator<AppGeneratorOptions> {

filesToIgnore() {
if (!this.options.useTs) {
return ["tsconfig.json", "blitz-env.d.ts"]
return ["tsconfig.json", "blitz-env.d.ts", "jest.config.ts"]
}
return ["jsconfig.json"]
return ["jsconfig.json", "jest.config.js"]
}

async getTemplateValues() {
Expand Down
3 changes: 3 additions & 0 deletions packages/generator/templates/app/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
preset: "blitz",
}

0 comments on commit 21a79ff

Please sign in to comment.