Skip to content

Commit

Permalink
chore: update snapshots for vitest v1
Browse files Browse the repository at this point in the history
pi0 committed Jan 21, 2024
1 parent 9137f70 commit ea2ff56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -124,10 +124,10 @@ describe("mkdist", () => {

expect(await readFile(resolve(rootDir, "dist/star/index.d.ts"), "utf8"))
.toMatchInlineSnapshot(`
"export * from \\"./other.js\\";
export type { Other } from \\"./other.js\\";
"
`);
"export * from "./other.js";
export type { Other } from "./other.js";
"
`);
expect(
await readFile(resolve(rootDir, "dist/bar/esm.d.mts"), "utf8"),
).toMatch("declare");
@@ -351,7 +351,7 @@ describe("mkdist", () => {
path: "test.jsx",
})) || [];
expect(results[1].contents).toMatchInlineSnapshot(`
"export const Test = () => /* @__PURE__ */ React.createElement(\\"div\\", null, \\"42\\");
"export const Test = () => /* @__PURE__ */ React.createElement("div", null, "42");
"
`);
});
@@ -368,7 +368,7 @@ describe("mkdist", () => {
path: "test.tsx",
})) || [];
expect(results[1].contents).toMatchInlineSnapshot(`
"export const Test = () => /* @__PURE__ */ React.createElement(\\"div\\", null, \\"42\\");
"export const Test = () => /* @__PURE__ */ React.createElement("div", null, "42");
"
`);
});

0 comments on commit ea2ff56

Please sign in to comment.