Skip to content

Allow for standalone component tests #4

Description

@ChrisMBarr

When using standalone components the declarations property is not used by Angular tests

Instead of

await TestBed.configureTestingModule({
  imports: [],
  declarations: [ExampleComponent],
  providers: [],
}).compileComponents();

it should be

await TestBed.configureTestingModule({
  imports: [ExampleComponent],
  providers: [],
}).compileComponents();

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions