diff --git a/packages/generator/src/generators/app-generator.ts b/packages/generator/src/generators/app-generator.ts index 83f032b03b..4f98334184 100644 --- a/packages/generator/src/generators/app-generator.ts +++ b/packages/generator/src/generators/app-generator.ts @@ -31,9 +31,9 @@ export class AppGenerator extends Generator { 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() { diff --git a/packages/generator/templates/app/jest.config.ts b/packages/generator/templates/app/jest.config.ts new file mode 100644 index 0000000000..30fe3fc967 --- /dev/null +++ b/packages/generator/templates/app/jest.config.ts @@ -0,0 +1,7 @@ +import type { Config } from "@jest/types" + +const config: Config.InitialOptions = { + preset: "blitz", +} + +export default config