pokerogue/vitest.workspace.ts
Dmitriy K 2f81bd504c
[Test] Prevent tests from running if overrides are different from the default values (#2110)
* mock default overrides in test setup

* change beforeEach to beforeALl

* move some more enums into the enums directory

* replace modules that import i18n into overrides with modules that don't

* add pre tests and update vitest configs, scripts

* replace tabs with spaces

* fix vitest server port overlap warning

* add missing overrides and clean up workspace config

* change test name

* include spec files in main test suite
2024-07-11 18:22:22 +01:00

15 lines
296 B
TypeScript

import { defineWorkspace } from "vitest/config";
import { defaultConfig } from "./vite.config";
export default defineWorkspace([
{
...defaultConfig,
test: {
name: "pre",
include: ["src/test/pre.test.ts"],
environment: "jsdom",
},
},
"./vitest.config.ts",
]);