mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
b2b1f9b9df
This sets us back up to use Vite via the electron-vite package. This will let us continue to build our testing suite on Vitest and take advantage of Vite features like Hot Module Reloading, etc. --------- Co-authored-by: sawka <mike.sawka@gmail.com>
23 lines
633 B
TypeScript
23 lines
633 B
TypeScript
import { UserConfig, defineConfig, mergeConfig } from "vitest/config";
|
|
import electronViteConfig from "./electron.vite.config";
|
|
|
|
export default mergeConfig(
|
|
electronViteConfig.renderer as UserConfig,
|
|
defineConfig({
|
|
test: {
|
|
reporters: ["verbose", "junit"],
|
|
outputFile: {
|
|
junit: "test-results.xml",
|
|
},
|
|
coverage: {
|
|
provider: "istanbul",
|
|
reporter: ["lcov"],
|
|
reportsDirectory: "./coverage",
|
|
},
|
|
typecheck: {
|
|
tsconfig: "tsconfig.json",
|
|
},
|
|
},
|
|
})
|
|
);
|