Skip to content

fix: repair karma test runner and fix broken specs#230

Open
fyllepo wants to merge 1 commit intoqubic:devfrom
fyllepo:fix/repair-karma-test-runner
Open

fix: repair karma test runner and fix broken specs#230
fyllepo wants to merge 1 commit intoqubic:devfrom
fyllepo:fix/repair-karma-test-runner

Conversation

@fyllepo
Copy link

@fyllepo fyllepo commented Feb 12, 2026

Hey! Noticed yarn test wasn't working — the karma builder was failing before any tests could run.

Root cause: allowJs: true in tsconfig.json triggers a known Angular 16 karma builder bug where the test bootstrap data URI can't be compiled. Setting allowJs: false in tsconfig.spec.json fixes it (there are no .js files in src/ anyway).

Also updated the AssetsComponent and NavigationComponent specs — they were missing test module imports and service mocks, so they'd fail even once the runner was working. All 15 tests pass now.

Ref: angular/angular-cli#25936

Set allowJs: false in tsconfig.spec.json to work around a known
Angular 16 karma builder issue with data URI compilation.

Update AssetsComponent and NavigationComponent specs with proper
test module imports and service mocks so all 15 tests pass.
@fyllepo
Copy link
Author

fyllepo commented Feb 12, 2026

Worth noting — the tests added in #229 (seed generation) will also run correctly once this fix is in. Verified locally with both branches combined: 20 of 20 passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant