Skip to content

Commit 65b6b27

Browse files
authored
add litegraph test config (#5310)
* add litegraph test config * remove unnecessary setup file * exclude litegraph test config * add npm script
1 parent 66a76c0 commit 65b6b27

File tree

4 files changed

+320
-4
lines changed

4 files changed

+320
-4
lines changed

knip.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const config: KnipConfig = {
1212
'playwright.config.ts',
1313
'playwright.i18n.config.ts',
1414
'vitest.config.ts',
15+
'vitest.litegraph.config.ts',
1516
'scripts/**/*.{js,ts}'
1617
],
1718
project: [
@@ -32,6 +33,8 @@ const config: KnipConfig = {
3233
'coverage/**',
3334
// i18n config
3435
'.i18nrc.cjs',
36+
// Vitest litegraph config
37+
'vitest.litegraph.config.ts',
3538
// Test setup files
3639
'browser_tests/globalSetup.ts',
3740
'browser_tests/globalTeardown.ts',

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"test:browser": "npx nx e2e",
2222
"test:unit": "nx run test tests-ui/tests",
2323
"test:component": "nx run test src/components/",
24+
"test:litegraph": "vitest run --config vitest.litegraph.config.ts",
2425
"preinstall": "npx only-allow pnpm",
2526
"prepare": "husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true",
2627
"preview": "nx preview",
@@ -56,6 +57,7 @@
5657
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
5758
"@types/dompurify": "^3.0.5",
5859
"@types/fs-extra": "^11.0.4",
60+
"@types/jsdom": "^21.1.7",
5961
"@types/node": "^20.14.8",
6062
"@types/semver": "^7.7.0",
6163
"@types/three": "^0.169.0",
@@ -78,6 +80,7 @@
7880
"identity-obj-proxy": "^3.0.0",
7981
"ink": "^6.2.2",
8082
"jiti": "2.4.2",
83+
"jsdom": "^26.1.0",
8184
"knip": "^5.62.0",
8285
"lint-staged": "^15.2.7",
8386
"lucide-vue-next": "^0.540.0",

0 commit comments

Comments
 (0)