![]() We will click on the debug icon (left hand sidebar).Or you can create a project from scratch by calling npx create-react-app myappįirst of all, let's enable debugging on our project, in order to do that:.As a starting point, you can take the (create-react-app/00-start) sample.In this case, you don't have direct access to jest, so you have to execute react-scripts to get your tests working. Let's say you have created your project using the create-react-app Facebook helper. Setting up configuration for a create-react-app based project If you want to learn how to configure this step by step, keep on reading :). Config file for custom solution (separate jest config file).Config file for custom solution (jest in package.json).Config file for create-react-app solution.If you are in a hurry and just need the config files, here you are: Jest configuration has been isolated in a separate jest config file.Jest configuration is included in the package.json file. ![]() How to config Visual Studio Code debugging on a project created from scratch and:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |