Skip to content

Commit 98d0614

Browse files
committed
test: migrate from karma to vitest
1 parent e5a56e1 commit 98d0614

File tree

148 files changed

+3957
-3873
lines changed

Some content is hidden

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

148 files changed

+3957
-3873
lines changed

.github/workflows/build-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [22.x]
15+
node-version: [24.x]
1616
os: [ubuntu-latest, windows-latest, macOS-latest]
1717

1818
steps:
@@ -24,6 +24,8 @@ jobs:
2424
cache: 'npm'
2525
- name: Install dependencies
2626
run: npm ci
27+
- name: Install Playwright Browsers
28+
run: npx playwright install --with-deps
2729
- name: Project check
2830
run: |
2931
npm run build:icons:prod

.github/workflows/project-chartjs-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [22.x]
19+
node-version: [24.x]
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
2121

2222
steps:
@@ -28,6 +28,8 @@ jobs:
2828
cache: 'npm'
2929
- name: Install dependencies
3030
run: npm ci
31+
- name: Install Playwright Browsers
32+
run: npx playwright install --with-deps
3133
- name: Project check
3234
run: |
3335
npm run build:chartjs:prod

.github/workflows/project-icons-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [22.x]
19+
node-version: [24.x]
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
2121

2222
steps:
@@ -28,6 +28,8 @@ jobs:
2828
cache: 'npm'
2929
- name: Install dependencies
3030
run: npm ci
31+
- name: Install Playwright Browsers
32+
run: npx playwright install --with-deps
3133
- name: Project check
3234
run: |
3335
npm run build:icons:prod

.github/workflows/project-lib-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [22.x]
19+
node-version: [24.x]
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
2121

2222
steps:
@@ -28,6 +28,8 @@ jobs:
2828
cache: 'npm'
2929
- name: Install dependencies
3030
run: npm ci
31+
- name: Install Playwright Browsers
32+
run: npx playwright install --with-deps
3133
- name: Project check
3234
run: |
3335
npm run build:icons:prod

angular.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"defaultConfiguration": "production"
3636
},
3737
"test": {
38-
"builder": "@angular/build:karma",
38+
"builder": "@angular/build:unit-test",
3939
"options": {
40-
"main": "projects/coreui-angular/src/test.ts",
4140
"tsConfig": "projects/coreui-angular/tsconfig.spec.json",
42-
"karmaConfig": "projects/coreui-angular/karma.conf.js"
41+
"browsers": ["ChromiumHeadless"],
42+
"runnerConfig": true
4343
}
4444
},
4545
"lint": {
@@ -78,11 +78,11 @@
7878
"defaultConfiguration": "production"
7979
},
8080
"test": {
81-
"builder": "@angular/build:karma",
81+
"builder": "@angular/build:unit-test",
8282
"options": {
83-
"main": "projects/coreui-angular-chartjs/src/test.ts",
8483
"tsConfig": "projects/coreui-angular-chartjs/tsconfig.spec.json",
85-
"karmaConfig": "projects/coreui-angular-chartjs/karma.conf.js"
84+
"browsers": ["ChromiumHeadless"],
85+
"runnerConfig": true
8686
}
8787
},
8888
"lint": {
@@ -124,11 +124,11 @@
124124
"defaultConfiguration": "production"
125125
},
126126
"test": {
127-
"builder": "@angular/build:karma",
127+
"builder": "@angular/build:unit-test",
128128
"options": {
129-
"main": "projects/coreui-icons-angular/src/test.ts",
130129
"tsConfig": "projects/coreui-icons-angular/tsconfig.spec.json",
131-
"karmaConfig": "projects/coreui-icons-angular/karma.conf.js"
130+
"browsers": ["ChromiumHeadless"],
131+
"runnerConfig": true
132132
}
133133
},
134134
"lint": {

0 commit comments

Comments
 (0)