Skip to content

Commit

Permalink
Update Angular files from source repository
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 1, 2025
1 parent f5dd360 commit f8b328a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
testMatch: ['**/+(*.)+(spec).+(ts)?(x)'], // Matches .spec.ts files
collectCoverage: true,
coverageDirectory: 'coverage',
moduleFileExtensions: ['ts', 'js', 'html'],
};

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "1.0.0",
"scripts": {
"start": "ng serve -o --proxy-config proxy.conf.json",
"build": "ng build --configuration production"
"build": "ng build --configuration production",
"test": "jest",
"test:watch": "jest --watch"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -37,11 +39,14 @@
"@angular/cli": "~19.1.5",
"@angular/compiler-cli": "^19.1.4",
"@types/jasmine": "~4.3.0",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.7.0",
"jest-preset-angular": "^14.5.1",
"prettier": "^2.7.1",
"prettier-eslint-cli": "^7.1.0",
"typescript": "~5.6.3"
Expand Down
3 changes: 3 additions & 0 deletions setup-jest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

import 'jest-preset-angular/setup-jest';

22 changes: 7 additions & 15 deletions tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": [
"jasmine"
]
},
"files": [
"src/test.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": ["jasmine"]
},
"files": ["setup-jest.ts", "src/polyfills.ts"],
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}

0 comments on commit f8b328a

Please sign in to comment.