jpreecedev / tdd-from-scratch

Starter repo for TDD from scratch blog post
https://developerhandbook.com/react/introduction-test-driven-development-react-jest/
MIT License
10 stars 4 forks source link

Cannot find name 'expect'.ts(2304) #1

Open paulywill opened 4 years ago

paulywill commented 4 years ago

I know this is probably out of scope for the guidebook... but my vs-code is showing the following problem with:

expect(container.firstChild).toMatchSnapshot()

image

Any ideas on how to get my vs-code to stop complaining about this?

As an aside I used import 'mocha' to get rid of problems and errors for describe and it.

paulywill commented 4 years ago

Possible solution.

https://github.com/facebook/jest/issues/8285#issuecomment-685843704