diff --git a/src/steps/clearUnnecessaryFiles.ts b/src/steps/clearUnnecessaryFiles.ts index 1fd57ed76..aa6c1d0bb 100644 --- a/src/steps/clearUnnecessaryFiles.ts +++ b/src/steps/clearUnnecessaryFiles.ts @@ -3,6 +3,7 @@ import * as fs from "node:fs/promises"; const globPaths = [ ...extensions(".babelrc", "cjs", "cts", "js", "json", "mjs"), ...extensions(".eslintrc", "js", "json", "yml"), + ...extensions(".mocha", "cjs", "js", "json", "jsonc", "yaml", "yml"), ...extensions(".prettierrc", "json", "json5", "yaml", "yml"), ...extensions("prettier.config", "js", "mjs", "cjs"), ...extensions("babel.config", "cjs", "cts", "js", "json", "mjs"), diff --git a/src/steps/writing/creation/writePackageJson.ts b/src/steps/writing/creation/writePackageJson.ts index 33913dfa0..05980d2ba 100644 --- a/src/steps/writing/creation/writePackageJson.ts +++ b/src/steps/writing/creation/writePackageJson.ts @@ -55,6 +55,8 @@ export async function writePackageJson(options: Options) { // Remove fields we know we don't want, such as old or redundant configs eslintConfig: undefined, husky: undefined, + jest: undefined, + mocha: undefined, prettierConfig: undefined, types: undefined,