Do the usual setup as described in the main README and the following steps:
yarn add -D typescript
Add a tsconfig.json
file just like tsconfig.json
.
Notice that you need to import @vtex/test-tools/react
whenever you want to use Jest, since react.d.ts
exports the types for Jest.
Done 🎉