-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
38 lines (36 loc) · 1.23 KB
/
vitest.config.ts
File metadata and controls
38 lines (36 loc) · 1.23 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
/** @format */
/// <reference types="vitest" />
import { fileURLToPath } from "node:url";
import angular from "@analogjs/vite-plugin-angular";
import { defineConfig } from "vitest/config";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [tsconfigPaths(), angular({ tsconfig: "./tsconfig.vitest.json" })],
resolve: {
alias: [
// ng-click-outside.main = битый CJS (import-синтаксис в .js). Резолвим на ESM-сборку.
{
find: /^ng-click-outside$/,
replacement: fileURLToPath(
new URL("node_modules/ng-click-outside/lib_esmodule/index.js", import.meta.url),
),
},
],
},
test: {
globals: true,
environment: "jsdom",
testTimeout: 10000,
setupFiles: ["./test-setup.ts"],
include: [
"projects/core/**/*.spec.ts",
"projects/ui/**/*.spec.ts",
"projects/social_platform/**/*.spec.ts",
],
exclude: [
"projects/social_platform/src/app/ui/pages/projects/projects.component.spec.ts",
"projects/social_platform/src/app/ui/pages/program/program.component.spec.ts",
"projects/social_platform/src/app/ui/pages/profile/edit/editor-submit-button.directive.spec.ts",
],
},
});