Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
something weird is going on with jest snapshot encoding
- double backslash \\ is changed into a forward slash /
- this doesn't effect real usage \\@ is what is actually returned from shell-quote and that works
  • Loading branch information
RamIdeas committed Oct 18, 2023
1 parent 3973739 commit 54a3f04
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 82 deletions.
12 changes: 8 additions & 4 deletions packages/wrangler/src/__tests__/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ describe("generate", () => {
}
);
await runWrangler("generate no-template");
expect(std.out).toMatchInlineSnapshot(
`"✨ Created no-template/wrangler.toml"`
);
expect(std.out).toMatchInlineSnapshot(`
"{
c3Arguments: 'create cloudflare@2 no-template',
quoted: 'create cloudflare//@2 no-template'
}
✨ Created no-template/wrangler.toml"
`);
expect(std.warn).toMatchInlineSnapshot(`
"[33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe \`init\` command is no longer supported. Please use \`mockpm create cloudflare@2 no-template\` instead.[0m
"[33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe \`init\` command is no longer supported. Please use \`mockpm create cloudflare/@2 no-template\` instead.[0m
The \`init\` command will be removed in a future version.
Expand Down
Loading

0 comments on commit 54a3f04

Please sign in to comment.