Skip to content

Instantly share code, notes, and snippets.

@bmdalex
Last active January 24, 2021 21:25
Show Gist options
  • Save bmdalex/62567a25c81e93f70464b43129204aa0 to your computer and use it in GitHub Desktop.
Save bmdalex/62567a25c81e93f70464b43129204aa0 to your computer and use it in GitHub Desktop.
DON'T create a cluttered test suite with a flat structure
it('mounts properly', () => { ... })
it('when the user submits a form should register the user by calling external API',
() => { ... })
it('renders properly', () => { ... })
it('when the form is loaded should make the submit button disabled', () => { ... })
it('should log the appropriate error', () => { ... })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment