Skip to content

Instantly share code, notes, and snippets.

@twerske
Created May 13, 2022 20:29
Show Gist options
  • Save twerske/cd7402eedc5901d7f96012a473185a32 to your computer and use it in GitHub Desktop.
Save twerske/cd7402eedc5901d7f96012a473185a32 to your computer and use it in GitHub Desktop.
hasHarness and getHarnessOrNull in Component Test Harnesses
const loader = TestbedHarnessEnvironment
.loader(fixture);
const hasButton = await loader
.hasHarness(MatButtonHarness)
const buttonHarnessOrNull = await loader
.getHarnessOrNull(MatButtonHarness);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment