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',
|
name: 'loaded year',
|
||||||
request: {
|
request: {
|
||||||
horizon,
|
horizon,
|
||||||
balances: Array.from({ length: 12 }, (_, index) =>
|
balances: Array.from({ length: 6 }, (_, index) =>
|
||||||
balance(`cp-${index}`, index % 2 ? 'rtt' : 'cp', 12),
|
balance(`cp-${index}`, index % 2 ? 'rtt' : 'cp', 12),
|
||||||
),
|
),
|
||||||
rules: Array.from({ length: 8 }, (_, index) => ({
|
rules: Array.from({ length: 5 }, (_, index) => ({
|
||||||
id: `window-${index}`,
|
id: `window-${index}`,
|
||||||
type: 'time_window' as const,
|
type: 'time_window' as const,
|
||||||
force: index < 3 ? ('obligation' as const) : ('preference' as const),
|
force: index < 3 ? ('obligation' as const) : ('preference' as const),
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
|||||||
|
|
||||||
setupTestBed();
|
setupTestBed();
|
||||||
|
|
||||||
|
vi.stubGlobal('Worker', window.Worker);
|
||||||
|
|
||||||
Object.defineProperty(window, 'matchMedia', {
|
Object.defineProperty(window, 'matchMedia', {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: vi.fn().mockImplementation((query: string) => ({
|
value: vi.fn().mockImplementation((query: string) => ({
|
||||||
|
|||||||
Reference in new issue
Block a user