Skip to content

Commit

Permalink
test: ensure that mocks are setup in isolation on each test
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Mar 5, 2024
1 parent 93e83b1 commit 1091091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-cloudflare/src/__tests__/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("addWranglerToGitIgnore", () => {
content: string | undefined;
} = { file: undefined, content: undefined };

beforeAll(() => {
beforeEach(() => {
vi.mocked(writeFile).mockImplementation((file: string, content: string) => {
writeFileResults.file = file;
writeFileResults.content = content;
Expand Down

0 comments on commit 1091091

Please sign in to comment.