Skip to content

Instantly share code, notes, and snippets.

@FagnerMartinsBrack
Created December 17, 2018 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FagnerMartinsBrack/928ccfacba428f5bc5de0927de6df696 to your computer and use it in GitHub Desktop.
Save FagnerMartinsBrack/928ccfacba428f5bc5de0927de6df696 to your computer and use it in GitHub Desktop.
(Medium) - The Myth Of 100% Code Coverage
const instance = render(<Counter></Counter>).getInstance();
instance.increment();
instance.increment();
expect(instance.getState()).toEqual({ count: 2 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment