Skip to content

Commit

Permalink
chore: update Angular and NgRx to v19
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jan 3, 2025
1 parent 46a5280 commit 54da7a5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
"postbuild": "cpy README.md LICENSE dist && cpy schematics ../../dist --parents --cwd=src"
},
"devDependencies": {
"@angular/compiler": "^18.1.0",
"@angular/compiler-cli": "^18.1.0",
"@angular/core": "^18.1.0",
"@ngrx/component-store": "^18.0.0",
"@ngrx/signals": "^18.0.0",
"@ngrx/store": "^18.0.0",
"@angular/compiler": "^19.0.0",
"@angular/compiler-cli": "^19.0.0",
"@angular/core": "^19.0.0",
"@ngrx/component-store": "^19.0.0",
"@ngrx/signals": "^19.0.0",
"@ngrx/store": "^19.0.0",
"@types/jest": "^29.5.12",
"cpy-cli": "^5.0.0",
"immer": "^10.0.3",
"jest": "^29.7.0",
"jest-preset-angular": "^14.0.3",
"ng-packagr": "^18.1.0",
"jest-preset-angular": "^14.4.2",
"ng-packagr": "^19.0.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rxjs": "~7.8.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.0.0",
"tsm": "^2.3.0",
"typescript": "5.5.2",
"typescript": "5.6.2",
"uvu": "^0.5.6"
}
}
4 changes: 3 additions & 1 deletion setup-jest.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
7 changes: 3 additions & 4 deletions src/signals/tests/immer-patch-state.jest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
PartialStateUpdater,
patchState,
signalStore,
withComputed,
withMethods,
Expand Down Expand Up @@ -226,10 +227,8 @@ describe('immerPatchState (protected)', () => {
it('state is protected and cannot be updated from the outside', () => {
const userState = setup();

expect(() => {
// @ts-ignore
immerPatchState(userState, (state) => ({ number: 1 }));
}).toThrow();
//@ts-expect-error state cannot be updated
patchState(userState, (state) => ({ number: 1 }));
});

it('allows patching protected state using withMethods', () => {
Expand Down

0 comments on commit 54da7a5

Please sign in to comment.