-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.server.js
More file actions
37 lines (34 loc) · 1.05 KB
/
vitest.config.server.js
File metadata and controls
37 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* =========================================================================
vitest.config.server.js
SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
This file is part of Network Pro.
========================================================================= */
import { sveltekit } from "@sveltejs/kit/vite";
import lightningcssPlugin from "vite-plugin-lightningcss";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [
sveltekit(),
lightningcssPlugin({
minify: process.env.NODE_ENV === "production",
pruneUnusedFontFaceRules: true,
pruneUnusedKeyframes: true,
removeUnusedFontFaces: true,
}),
],
test: {
name: "server",
environment: "node",
include: ["tests/unit/**/*.test.{js,mjs}"],
exclude: ["tests/unit/**/*.svelte.test.{js,mjs}"],
reporters: ["default", "json"],
outputFile: {
json: "./reports/server/results.json",
},
coverage: {
provider: "v8",
reporter: ["html"],
reportsDirectory: "./reports/server/coverage",
},
},
});