Skip to content

Commit

Permalink
fix: change jest to vitest types in tsconfig (#2652)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob M-G Evans <27247160+JacobMGEvans@users.noreply.github.com>
  • Loading branch information
mrkldshv and JacobMGEvans committed Jan 30, 2023
1 parent 73807f5 commit 2efd453
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-mirrors-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: change `jest` to `vitest` types in generated TypeScript config
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ describe("init", () => {
contents: {
config: {
compilerOptions: expect.objectContaining({
types: ["@cloudflare/workers-types", "jest"],
types: ["@cloudflare/workers-types", "vitest"],
}),
},
error: undefined,
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/templates/tsconfig.init.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
"types": [
"@cloudflare/workers-types",
"jest"
"vitest"
] /* Specify type package names to be included without being referenced in a source file. */,
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
"resolveJsonModule": true /* Enable importing .json files */,
Expand Down

0 comments on commit 2efd453

Please sign in to comment.