mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[CL-525] Upgrade angular to v19 (#14815)
Upgrade Angular to v19 using the update guide. - Add `standalone: false` to any missed component in stories or tests. - Update jest.config to follow the new best practices.
This commit is contained in:
@@ -10,7 +10,7 @@ import { ToggleComponent } from "./toggle.component";
|
||||
describe("Button", () => {
|
||||
let fixture: ComponentFixture<TestApp>;
|
||||
let testAppComponent: TestApp;
|
||||
let buttonElements: ToggleComponent[];
|
||||
let buttonElements: ToggleComponent<unknown>[];
|
||||
let radioButtons: HTMLInputElement[];
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
@@ -67,6 +67,7 @@ describe("Button", () => {
|
||||
<bit-toggle value="third">Third</bit-toggle>
|
||||
</bit-toggle-group>
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
class TestApp {
|
||||
selected?: string;
|
||||
|
||||
@@ -63,12 +63,13 @@ describe("Button", () => {
|
||||
|
||||
class MockedButtonGroupComponent implements Partial<ToggleGroupComponent> {
|
||||
onInputInteraction = jest.fn();
|
||||
selected = null;
|
||||
selected: unknown = null;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: "test-app",
|
||||
template: ` <bit-toggle [value]="value">Element</bit-toggle>`,
|
||||
standalone: false,
|
||||
})
|
||||
class TestApp {
|
||||
value?: string;
|
||||
|
||||
Reference in New Issue
Block a user