Skip to content

Commit 3521895

Browse files
authored
chore: bump angular to v22.1 (#9902)
1 parent 584928e commit 3521895

5 files changed

Lines changed: 22185 additions & 21368 deletions

File tree

components/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@
140140
"cache": true
141141
}
142142
}
143-
}
143+
}

components/vitest-setup.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import 'zone.js/testing';
1010

1111
import { registerLocaleData } from '@angular/common';
1212
import zh from '@angular/common/locales/zh';
13+
import { provideZonelessChangeDetection } from '@angular/core';
1314
import { TestBed } from '@angular/core/testing';
1415

1516
import { vi } from 'vitest';
@@ -99,7 +100,12 @@ const originalConsoleWarn = console.warn;
99100

100101
beforeEach(() => {
101102
TestBed.configureTestingModule({
102-
providers: [provideNzDateFnsAdapter()]
103+
providers: [
104+
provideNzDateFnsAdapter(),
105+
// Since https://github.com/angular/angular-cli/pull/33478, library tests can
106+
// fall back to Zone-based change detection. Specify zoneless mode explicitly.
107+
provideZonelessChangeDetection()
108+
]
103109
});
104110
});
105111

components/vitest.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default defineConfig({
1010
coverage: {
1111
reportsDirectory: 'coverage-report',
1212
reporter: ['html', 'text-summary', 'lcovonly', 'cobertura']
13-
}
13+
},
14+
screenshotFailures: false
1415
}
1516
});

0 commit comments

Comments
 (0)