forked from cloudscape-design/chart-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.unit.mjs
More file actions
41 lines (38 loc) · 1.06 KB
/
vite.config.unit.mjs
File metadata and controls
41 lines (38 loc) · 1.06 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
38
39
40
41
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import path from "path";
import { fileURLToPath } from "url";
import { defineConfig } from "vite";
import base from "./vite.config.mjs";
// https://vitejs.dev/config/
export default defineConfig({
...base,
root: "./",
resolve: {
alias: {
"@lib": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "lib"),
},
},
test: {
include: ["./src/**/__tests__/**/*.test.{ts,tsx}"],
environment: "jsdom",
setupFiles: ["./src/__tests__/setup.ts"],
coverage: {
enabled: true,
provider: "v8",
reporter: ["clover", "lcov", "html", "json"],
include: ["src/**", "lib/components/**"],
exclude: [
"**/debug-tools/**",
"**/__tests__/**",
"**/*.d.ts",
"**/styles.selectors.js",
"**/styles.css.js",
"src/test-utils/selectors/**",
"lib/components/test-utils/selectors/**",
"lib/components/internal/api-docs/**",
],
},
globals: true,
},
});