Skip to content

Commit

Permalink
test: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Dec 7, 2024
1 parent 8455560 commit 7e38441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/__snapshots__/esm-shims-snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import path from "node:path";
import { fileURLToPath } from "node:url";

//#region ../../../assets/esm-shims.js
//#region ../../../esm-shims.js
const getFilename = () => fileURLToPath(import.meta.url);
const getDirname = () => path.dirname(getFilename());
const __dirname = /* @__PURE__ */ getDirname();
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function testBuild(
await Promise.all(
outputFiles.map(
async (filename) =>
`## ${filename}\n\n\`\`\`js\n${await readFile(path.resolve(outputDir, filename), 'utf8')}\n\`\`\``,
`## ${filename.replaceAll('\\', '/')}\n\n\`\`\`js\n${await readFile(path.resolve(outputDir, filename), 'utf8')}\n\`\`\``,
),
)
).join('\n')
Expand Down

0 comments on commit 7e38441

Please sign in to comment.