Skip to content

Latest commit

 

History

History

typescript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

TypeScript example

Setup

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 🎉