1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-18599] Forbid unknown property and element in tests (#13556)

Fail tests when relying on unknownProperties or unknownElements. Existing instances are whitelist and have tickets created and assigned to the relevant teams.
This commit is contained in:
Oscar Hinton
2025-02-25 23:02:19 +01:00
committed by GitHub
parent e6e6058f9e
commit cec117459b
34 changed files with 65 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
import "jest-preset-angular/setup-jest";
import { getTestBed } from "@angular/core/testing";
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from "@angular/platform-browser-dynamic/testing";
getTestBed().resetTestEnvironment();
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
errorOnUnknownElements: true,
errorOnUnknownProperties: true,
});