Skip to content

Commit

Permalink
fix: test zoneless
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Dec 4, 2024
1 parent 9871e30 commit cb513bf
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 10 deletions.
6 changes: 5 additions & 1 deletion libs/nodes/src/lib/services/nodes-actions.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { TestBed } from '@angular/core/testing';
import { NodesActions } from './nodes-actions';
import { NodesStore } from './nodes.store';
import { signal } from '@angular/core';
import {
provideExperimentalZonelessChangeDetection,
signal,
} from '@angular/core';
import { TuNode } from '@tapiz/board-commons';
import { vi } from 'vitest';

Expand All @@ -26,6 +29,7 @@ describe('NodesActions', () => {

TestBed.configureTestingModule({
providers: [
provideExperimentalZonelessChangeDetection(),
NodesActions,
{ provide: NodesStore, useValue: nodesStoreMock },
],
Expand Down
2 changes: 1 addition & 1 deletion libs/nodes/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@analogjs/vite-plugin-angular/setup-vitest';
import '@analogjs/vitest-angular/setup-snapshots';

import {
BrowserDynamicTestingModule,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"private": true,
"dependencies": {
"@analogjs/vite-plugin-angular": "^1.9.4",
"@analogjs/vite-plugin-angular": "^1.10.0",
"@analogjs/vitest-angular": "^1.10.0",
"@angular/animations": "19.0.1",
"@angular/cdk": "19.0.1",
"@angular/common": "19.0.1",
Expand Down
29 changes: 22 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb513bf

Please sign in to comment.