forked from vinu-deriv/trading-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.js
33 lines (32 loc) · 1017 Bytes
/
vitest.config.js
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
import solidPlugin from "vite-plugin-solid";
import path from "path";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [solidPlugin()],
test: {
deps: {
registerNodeLoader: true,
inline: [/solid-js/],
},
environment: "jsdom",
globals: true,
setupFiles: [
"node_modules/@testing-library/jest-dom/extend-expect",
"./setupVitest.js",
],
transformMode: { web: [/\.[jt]sx?$/] },
},
resolve: {
conditions: ["development", "browser"],
alias: {
Assets: path.resolve(__dirname, "./src/assets"),
Components: path.resolve(__dirname, "./src/components"),
Constants: path.resolve(__dirname, "./src/constants"),
Containers: path.resolve(__dirname, "./src/containers"),
Routes: path.resolve(__dirname, "./src/routes"),
Stores: path.resolve(__dirname, "./src/stores"),
Styles: path.resolve(__dirname, "./src/styles"),
Utils: path.resolve(__dirname, "./src/utils"),
},
},
});