Skip to content

Commit b67b4c6

Browse files
committed
use vitest
1 parent 5595e65 commit b67b4c6

18 files changed

+5665
-11338
lines changed

.github/workflows/workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
branches:
1212
- main
1313

14+
env:
15+
CI: true
16+
1417
jobs:
1518
test:
1619
runs-on: ubuntu-latest

angular.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"outputPath": "dist/ngx-translate-module-loader-app",
2121
"index": "src/index.html",
2222
"browser": "src/main.ts",
23-
"polyfills": ["zone.js"],
23+
"polyfills": [],
2424
"tsConfig": "tsconfig.app.json",
2525
"inlineStyleLanguage": "scss",
2626
"assets": ["src/favicon.ico", "src/assets"],
@@ -70,13 +70,7 @@
7070
}
7171
},
7272
"test": {
73-
"builder": "@angular-builders/jest:run",
74-
"options": {
75-
"tsConfig": "tsconfig.spec.json",
76-
"polyfills": ["zone.js", "zone.js/testing"],
77-
"include": ["src/**/*.spec.ts"],
78-
"coverage": true
79-
}
73+
"builder": "@angular/build:unit-test"
8074
}
8175
}
8276
},
@@ -87,10 +81,7 @@
8781
"prefix": "lib",
8882
"architect": {
8983
"build": {
90-
"builder": "@angular/build:ng-packagr",
91-
"options": {
92-
"project": "projects/ngx-translate-module-loader/ng-package.json"
93-
},
84+
"builder": "@angular/build:ng-packagr",
9485
"configurations": {
9586
"production": {
9687
"tsConfig": "projects/ngx-translate-module-loader/tsconfig.lib.prod.json"
@@ -102,12 +93,9 @@
10293
"defaultConfiguration": "production"
10394
},
10495
"test": {
105-
"builder": "@angular-builders/jest:run",
96+
"builder": "@angular/build:unit-test",
10697
"options": {
107-
"tsConfig": "tsconfig.spec.json",
108-
"polyfills": ["zone.js", "zone.js/testing"],
109-
"include": ["src/**/*.spec.ts"],
110-
"coverage": true
98+
"tsConfig": "projects/ngx-translate-module-loader/tsconfig.spec.json"
11199
}
112100
}
113101
}

0 commit comments

Comments
 (0)