test: lower debounceTime in browser builder tests

The current `debounceTime` values are unnecessarily high, resulting in slow test execution. Reducing these times will improve efficiency.
This commit is contained in:
Alan Agius 2025-01-07 10:59:20 +00:00 committed by Alan Agius
parent 3b5afbb52c
commit 4d88743b02
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ describe('Browser Builder lazy modules', () => {
const run = await architect.scheduleTarget(target, overrides);
await run.output
.pipe(
debounceTime(1500),
debounceTime(1000),
tap((buildEvent) => {
buildNumber++;
switch (buildNumber) {

View File

@ -22,7 +22,7 @@ describe('Browser Builder rebuilds', () => {
const target = { project: 'app', target: 'build' };
// Rebuild tests are especially sensitive to time between writes due to file watcher
// behaviour. Give them a while.
const rebuildDebounceTime = 3000;
const rebuildDebounceTime = 1000;
let architect: Architect;
beforeEach(async () => {

View File

@ -147,7 +147,7 @@ describe('Browser Builder service worker', () => {
await run.output
.pipe(
debounceTime(3000),
debounceTime(1000),
tap((buildEvent) => {
expect(buildEvent.success).toBeTrue();