From 6d60a7b3d60abe3515b66dc605e82940174a0798 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Wed, 7 Aug 2024 14:29:36 -0400 Subject: [PATCH] feat: clear more Mocha and Jest remnants --- src/steps/clearUnnecessaryFiles.ts | 1 + src/steps/writing/creation/writePackageJson.ts | 2 ++ 2 files changed, 3 insertions(+) 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,