Skip to content

Commit

Permalink
update dependencies for happy-dom and vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Feb 9, 2024
1 parent f9ab10b commit b09f510
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 94 deletions.
4 changes: 3 additions & 1 deletion js/app/src/i18n.ts
@@ -1,6 +1,8 @@
import { addMessages, init, getLocaleFromNavigator } from "svelte-i18n";

const langs = import.meta.globEager("./lang/*.json");
const langs = import.meta.glob("./lang/*.json", {
eager: true
});

type LangsRecord = Record<
string,
Expand Down
2 changes: 1 addition & 1 deletion js/app/vite.config.ts
Expand Up @@ -37,7 +37,7 @@ import {

const GRADIO_VERSION = version_raw || "asd_stub_asd";
const CDN_BASE = "https://gradio.s3-us-west-2.amazonaws.com";
const TEST_MODE = process.env.TEST_MODE || "jsdom";
const TEST_MODE = process.env.TEST_MODE || "happy-dom";

//@ts-ignore
export default defineConfig(({ mode }) => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -57,6 +57,7 @@
"eslint": "^8.46.0",
"eslint-plugin-svelte": "^2.32.4",
"globals": "^13.20.0",
"happy-dom": "^13.3.8",
"jsdom": "^24.0.0",
"kleur": "^4.1.5",
"msw": "^2.0.0",
Expand Down Expand Up @@ -85,7 +86,7 @@
"typescript-svelte-plugin": "^0.3.34",
"vite": "^4.3.9",
"vite-plugin-turbosnap": "1.0.3",
"vitest": "^0.34.6"
"vitest": "^1.2.2"
},
"devDependencies": {
"@storybook/addon-a11y": "^7.5.1",
Expand Down

0 comments on commit b09f510

Please sign in to comment.