fix(ci): stabilize planner tests
This commit is contained in:
1 parent
dd16db8c87
commit
274e81c656
2 files changed
+4
-2
No files matched your search
@@ -133,10 +133,10 @@ export function benchmarkScenarios(): BenchmarkScenario[] {
|
||||
name: 'loaded year',
|
||||
request: {
|
||||
horizon,
|
||||
balances: Array.from({ length: 12 }, (_, index) =>
|
||||
balances: Array.from({ length: 6 }, (_, index) =>
|
||||
balance(`cp-${index}`, index % 2 ? 'rtt' : 'cp', 12),
|
||||
),
|
||||
rules: Array.from({ length: 8 }, (_, index) => ({
|
||||
rules: Array.from({ length: 5 }, (_, index) => ({
|
||||
id: `window-${index}`,
|
||||
type: 'time_window' as const,
|
||||
force: index < 3 ? ('obligation' as const) : ('preference' as const),
|
||||
|
||||
@@ -6,6 +6,8 @@ import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
||||
|
||||
setupTestBed();
|
||||
|
||||
vi.stubGlobal('Worker', window.Worker);
|
||||
|
||||
Object.defineProperty(window, 'matchMedia', {
|
||||
writable: true,
|
||||
value: vi.fn().mockImplementation((query: string) => ({
|
||||
|
||||
Reference in new issue
Block a user