Skip to content

Commit 7e377ca

Browse files
committed
feat: replace jasmine/karma by jest
1 parent 1ff9703 commit 7e377ca

File tree

6 files changed

+8386
-5286
lines changed

6 files changed

+8386
-5286
lines changed

front/angular.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,17 @@
9393
"builder": "@angular-devkit/build-angular:extract-i18n"
9494
},
9595
"test": {
96-
"builder": "@angular-devkit/build-angular:karma",
96+
"builder": "@angular-builders/jest:run",
9797
"options": {
98+
"configPath": "./jest.config.ts",
9899
"polyfills": [
99100
"zone.js",
100101
"zone.js/testing"
101102
],
102103
"tsConfig": "tsconfig.spec.json",
103-
"karmaConfig": "karma.conf.js",
104-
"inlineStyleLanguage": "scss",
105-
"preserveSymlinks": true,
104+
"preserveSymlinks": [
105+
"true"
106+
],
106107
"watch": false,
107108
"styles": [
108109
"src/styles.scss"

front/jest.config.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { Config } from 'jest';
2+
3+
export default {
4+
preset: 'jest-preset-angular',
5+
coverageReporters: ["lcovonly"],
6+
coverageDirectory: './coverage',
7+
verbose: true
8+
} satisfies Config;

front/karma.conf.js

-59
This file was deleted.

0 commit comments

Comments
 (0)