mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
chore: tests config
This commit is contained in:
parent
7131a570f4
commit
6a3ef0f790
5 changed files with 5 additions and 6 deletions
|
|
@ -8,7 +8,7 @@
|
|||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"test": "vitest --reporter verbose",
|
||||
"test": "vitest",
|
||||
"coverage": "vitest run --coverage"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import {vi, describe, it, expect} from "vitest";
|
||||
|
||||
vi.stubGlobal("Names", {
|
||||
getBase: () => 0,
|
||||
getBaseShort: () => "TestName"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import {describe, it, expect} from "vitest";
|
||||
|
||||
import {sliceFragment} from "./arrayUtils";
|
||||
|
||||
describe("sliceFragment", () => {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
"noUnusedParameters": true,
|
||||
"noImplicitReturns": true,
|
||||
"skipLibCheck": true,
|
||||
"types": ["vitest/globals"],
|
||||
"baseUrl": "src"
|
||||
},
|
||||
"include": ["src"]
|
||||
|
|
|
|||
|
|
@ -64,7 +64,9 @@ export default defineConfig(({mode}) => {
|
|||
}
|
||||
},
|
||||
test: {
|
||||
environment: "happy-dom"
|
||||
globals: true,
|
||||
environment: "happy-dom",
|
||||
reporters: ["verbose"]
|
||||
},
|
||||
resolve: {
|
||||
alias: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue