Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Test tweaks
Russ Garrett592d8ee4f7c5
diff --git a/web/package.json b/web/package.jsonindex b14fa7b..2777451 100644--- a/web/package.json+++ b/web/package.json@@ -23,7 +23,6 @@"homepage": "https://github.com/openinframap/web#readme","devDependencies": {"@russss/maplibregl-layer-switcher": "^2.0.1",- "@types/jest": "^29.5.14","@typescript-eslint/eslint-plugin": "^8.18.0","@typescript-eslint/parser": "^8.18.0","eslint-config-prettier": "^9.1.0",diff --git a/web/tests/puppeteer.test.ts b/web/tests/puppeteer.test.tsindex 0e44406..b0f59f2 100644--- a/web/tests/puppeteer.test.ts+++ b/web/tests/puppeteer.test.ts@@ -1,3 +1,4 @@+import { describe, beforeAll, test, expect } from 'vitest'import 'vitest-puppeteer'const url = 'http://localhost:5173'diff --git a/web/tsconfig.json b/web/tsconfig.jsonindex e0ea792..2b2eb4c 100644--- a/web/tsconfig.json+++ b/web/tsconfig.json@@ -17,9 +17,7 @@"strict": true,"noUnusedLocals": true,"noUnusedParameters": true,- "noFallthroughCasesInSwitch": true,-- "types": ["jest"]+ "noFallthroughCasesInSwitch": true},"include": ["src", "tests"]}diff --git a/web/vitest.workspace.ts b/web/vitest.workspace.tsnew file mode 100644index 0000000..06012f8--- /dev/null+++ b/web/vitest.workspace.ts@@ -0,0 +1,7 @@+import { defineWorkspace } from 'vitest/config'++export default defineWorkspace([+ {+ extends: './vite.config.js'+ }+])