angular-testing-library
angular-testing-library copied to clipboard
🐙 Simple and complete Angular testing utilities that encourage good testing practices
I try test a form required, the first time test pass normal, but when I change the file and karma refresh the tests all tests in form broken **app.component.ts** ```...
Hi, I'm testing component that used as WebComponent (Angular Element). And I want to enable shadow DOM encapsulation. ``` @Component({ // ... encapsulation: ViewEncapsulation.ShadowDom //
Love using testing library, so thank you for giving me Angular testing library!! 🙏 One small problem with using it is that sometimes I _need_ access to the rendered component...
Add test cases for signal inputs. Do we need to do something to cover these, or does this just work? 👀
Closes #412
Hi, I wish `RenderComponentOptions` were typed a little more. I have seen something along the lines of: ```typescript const routingMock = new RouterMock() const ourPageMenuButtons: MenuButton[] = [{ name: 'testName',...
Angular introduced [RouterTestingHarness](https://angular.io/api/router/testing/RouterTestingHarness) as a utility for testing a component that depends on the router. RouterTestingHarness manages a root component to instantiate `` and returns routed component by `navigateByUrl(url, component)`...
Hi, This issue is related to [this thread](https://github.com/timdeschryver/timdeschryver.dev/discussions/280#discussioncomment-8375433). I'm writing a test for a form wizard using Angular Testing Library, and my approach involves splitting each test case using the...
Hello, I'm using HappyDom instead of JSDOM and I have following issue. when I do something like `await screen.findByText(optionLabel);` `observer.observe is not a function TypeError: observer.observe is not a function`...