Intro to Software Testing with Jest
HTML-код
- Опубликовано: 16 окт 2024
- Software testing is usually not covered in bootcamps but it's a requirement for writing enterprise code and an easy way to stand out in interviews. Join me as I go over the basics!
Prerequisites: Node and npm installed on your machine.
Full list of matchers: jestjs.io/docs...
I have a question about the import and export keywords in React applications. I have learned so many things about Jest and I really love it, but when it comes to apply Jest in React apps, I always face with the error in which Jest is not able to read import and export keywords. I have researched and tried to use babelJS to transpile ES6 syntax to commonJS syntax to make my code readable when using Jest. Unfortunately, nothing works and I have been stuck with it in 1 month. Could you please make a video to explain how to set up Jest in React apps so that we can avoid the above errors. Thank you so much.
Appreciate your question - I'm wondering what your environment is like. Did you use CRA to bootstrap your project? If you did, you'll need to create config files for both Babel and Jest. I could definitely dive into that next!
@@bitsnbotsai Yes sir, I use CRA to create my React applications. Honestly speaking.Thank you for replying and for being such an amazing teacher! Looking forward to your next video on Jest setup.