Skip to content

Commit 823ba1e

Browse files
committed
chore: migrate to vitest
1 parent 828e268 commit 823ba1e

File tree

156 files changed

+3082
-2339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+3082
-2339
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ Thumbs.db
4242
.nx/workspace-data
4343
.angular
4444
.dev.env
45+
46+
vite.config.*.timestamp*
47+
vitest.config.*.timestamp*
48+
.cursor/rules/nx-rules.mdc
49+
.github/instructions/nx.instructions.md

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Debug json-api-server with Nx",
8+
"runtimeExecutable": "npx",
9+
"runtimeArgs": ["nx", "serve", "json-api-server"],
10+
"env": {
11+
"NODE_OPTIONS": "--inspect=9229"
12+
},
13+
"console": "integratedTerminal",
14+
"internalConsoleOptions": "neverOpen",
15+
"skipFiles": ["<node_internals>/**"],
16+
"sourceMaps": true,
17+
"outFiles": [
18+
"${workspaceFolder}/apps/json-api-server/dist/**/*.(m|c|)js",
19+
"!**/node_modules/**"
20+
]
21+
}
22+
]
23+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.validate": ["json"]
3+
}

apps/json-api-front/jest.config.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

apps/json-api-front/project.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"prefix": "nestjs-json-api",
66
"sourceRoot": "apps/json-api-front/src",
77
"tags": [],
8+
"implicitDependencies": ["json-api-nestjs-sdk"],
89
"targets": {
910
"build": {
1011
"executor": "@angular-devkit/build-angular:application",
@@ -60,14 +61,14 @@
6061
"buildTarget": "json-api-front:build:development"
6162
}
6263
},
63-
"defaultConfiguration": "development"
64+
"defaultConfiguration": "development",
65+
"dependsOn": ["json-api-server:serve"]
6466
},
6567
"extract-i18n": {
6668
"executor": "@angular-devkit/build-angular:extract-i18n",
6769
"options": {
6870
"buildTarget": "json-api-front:build"
6971
}
7072
}
71-
},
72-
"implicitDependencies": ["json-api-nestjs-sdk"]
73+
}
7374
}

apps/json-api-front/proxy.conf.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
"target": "http://localhost:3000",
88
"secure": false,
99
"ws": true
10+
},
11+
"/json-api-server-api": {
12+
"target": "http://localhost:3000",
13+
"secure": false
1014
}
1115
}

apps/json-api-front/src/test-setup.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/json-api-front/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
},
88
"files": ["src/main.ts"],
99
"include": ["src/**/*.d.ts"],
10-
"exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"]
10+
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts"]
1111
}

apps/json-api-front/tsconfig.editor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"extends": "./tsconfig.json",
33
"include": ["src/**/*.ts"],
44
"compilerOptions": {
5-
"types": ["jest", "node"]
5+
"types": ["node"]
66
}
77
}

apps/json-api-front/tsconfig.spec.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)