From ea2ff5689a97866c5869ce953c18e970dfd3d5e9 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 21 Jan 2024 17:57:51 +0100 Subject: [PATCH] chore: update snapshots for vitest v1 --- test/index.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index e1b63a2..c0a544a 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -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"); " `); });