Skip to content

🎥 Make videos programmatically with React

Templates: Align .vscode/settings.json for every template

Jonny Burgerebc20fd586d5
diff --git a/packages/it-tests/src/templates/validate-templates.test.ts b/packages/it-tests/src/templates/validate-templates.test.ts
index 3c7e10426c..c71d6a3ab3 100644
--- a/packages/it-tests/src/templates/validate-templates.test.ts
+++ b/packages/it-tests/src/templates/validate-templates.test.ts
@@ -157,5 +157,12 @@ describe("Templates should be valid", () => {
const json = JSON.parse(contents as string);
expect(json.compilerOptions.noUnusedLocals).toBe(true);
});
+ it(template.shortName + " should have a good .vscode setting", async () => {
+ const { contents } = await findFile([
+ getFileForTemplate(template, ".vscode/settings.json"),
+ ]);
+ const json = JSON.parse(contents as string);
+ expect(json["editor.codeActionsOnSave"]).toBe(undefined);
+ });
}
});