From 9eb39f31a063bba9b3d846660478f99caff111f1 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 15 Nov 2022 19:00:46 +0530 Subject: [PATCH] fix: Snapshot, env types --- .vscode/settings.json | 2 +- src/env.d.ts | 10 +++++----- .../components/Card/__snapshots__/card.test.ts.snap | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 28b8758f..925342c8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.formatOnSave": true, - "cSpell.words": ["asyncable", "mindmap", "pako", "Serde", "serdes", "tailwindcss"], + "cSpell.words": ["asyncable", "KROKI", "mindmap", "pako", "Serde", "serdes", "tailwindcss"], "vitest.commandLine": "yarn test:unit", "vitest.enable": true, "testing.autoRun.mode": "rerun", diff --git a/src/env.d.ts b/src/env.d.ts index e3cf245e..8188f7aa 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,11 +1,11 @@ /// interface ImportMetaEnv { - readonly MERMAID_RENDERER_URL: string; - readonly MERMAID_KROKI_RENDERER_URL: string; - readonly MERMAID_CDN_URL: string; - readonly MERMAID_BASE_URL: string; - readonly MERMAID_LOCAL: boolean; + readonly MERMAID_RENDERER_URL?: string; + readonly MERMAID_KROKI_RENDERER_URL?: string; + readonly MERMAID_CDN_URL?: string; + readonly MERMAID_BASE_URL?: string; + readonly MERMAID_LOCAL?: boolean; // more env variables... } diff --git a/src/lib/components/Card/__snapshots__/card.test.ts.snap b/src/lib/components/Card/__snapshots__/card.test.ts.snap index eb662c95..c23d7e06 100644 --- a/src/lib/components/Card/__snapshots__/card.test.ts.snap +++ b/src/lib/components/Card/__snapshots__/card.test.ts.snap @@ -1,3 +1,3 @@ // Vitest Snapshot v1 -exports[`card.svelte > mounts 1`] = `"
TabTest
    title1
    title2
"`; +exports[`card.svelte > mounts 1`] = `"
TabTest
    title1
    title2
"`;