Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
const view = render(MyComponent);
await fireEvent.click(view.getByRole('button', { name: /remove_potato/ }));
expect(view.emitted('do_thing')).toEqual({ 'do_thing': [[123]] });

Mocking GraphQL queries

...