mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-06 23:44:19 +08:00
- **build: replace dotenv with vite env variables (@fehmer)** - **build: combine vite config into a single file (@fehmer)** --------- Co-authored-by: Miodec <jack@monkeytype.com>
27 lines
636 B
TypeScript
27 lines
636 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { languageHashes } from "./vite-plugins/language-hashes";
|
|
import { envConfig } from "./vite-plugins/env-config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "happy-dom",
|
|
globalSetup: "__tests__/global-setup.ts",
|
|
setupFiles: ["__tests__/setup-tests.ts"],
|
|
|
|
coverage: {
|
|
include: ["**/*.ts"],
|
|
},
|
|
deps: {
|
|
optimizer: {
|
|
web: {
|
|
include: ["@monkeytype/funbox"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
plugins: [
|
|
languageHashes({ skip: true }),
|
|
envConfig({ isDevelopment: true, clientVersion: "TESTING", env: {} }),
|
|
],
|
|
});
|