Skip to content

Commit aa232a9

Browse files
feat: support Angular 20 (#1220)
Adds Angular 20 support. This also remove the custom jest setup as it was not compatible with Angular 20 and uses builtin support for vitest in Angular 20. For this, Angular has been removed from the jest setup and the pipeline runs it separately now. Fixes #1206 --------- Signed-off-by: Lukas Reining <[email protected]>
1 parent 07af3a9 commit aa232a9

17 files changed

+9086
-11881
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ jobs:
3737
- name: Lint
3838
run: npm run lint
3939

40-
- name: Test
41-
run: npm run test
40+
- name: Test Jest Projects
41+
run: npm run test:jest
42+
43+
- name: Test Angular SDK
44+
run: npm run test:angular
4245

4346
codecov-and-docs:
4447
runs-on: ubuntu-latest

jest.config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -190,26 +190,6 @@ export default {
190190
],
191191
},
192192
},
193-
{
194-
displayName: 'angular',
195-
testEnvironment: 'jsdom',
196-
preset: 'jest-preset-angular',
197-
testMatch: ['<rootDir>/packages/angular/projects/angular-sdk/src/**/*.spec.{ts,tsx}'],
198-
setupFilesAfterEnv: ['<rootDir>/packages/angular/setup-jest.ts'],
199-
moduleNameMapper: {
200-
'@openfeature/core': '<rootDir>/packages/shared/src',
201-
'@openfeature/web-sdk': '<rootDir>/packages/web/src',
202-
},
203-
transform: {
204-
'^.+\\.(ts|js|html|svg)$': [
205-
'jest-preset-angular',
206-
{
207-
tsconfig: '<rootDir>/packages/angular/tsconfig.json',
208-
isolatedModules: true,
209-
},
210-
],
211-
},
212-
}
213193
],
214194

215195
// Use this configuration option to add custom reporters to Jest

0 commit comments

Comments
 (0)