Merged in chore/upgrade-vitest4 (pull request #3253)

chore: upgrade to vitest@4

* chore: upgrade to vitest@4


Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2025-12-01 12:41:12 +00:00
parent 3ec78b4fab
commit f5dd6740d0
13 changed files with 241 additions and 191 deletions

View File

@@ -96,7 +96,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"typescript": "5.8.3",
"vitest": "^3.2.4"
"vitest": "^4.0.0"
},
"prettier": {
"semi": false,

View File

@@ -1,9 +1,11 @@
import path from "path"
import { fileURLToPath } from "url"
import { defineConfig } from "vitest/config"
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
export default {
export default defineConfig({
test: {
globals: true,
environment: "jsdom",
@@ -14,4 +16,4 @@ export default {
"@": path.resolve(__dirname, "."),
},
},
}
})