Creating NPM Package with Vanilla JavaScript
/
Testing JavaScript Code
Testing JavaScript Code
https://leanpub.com/creating-npm-package-with-vanilla-javascript
1. Installing the Testing Tool
https://leanpub.com/creating-npm-package-with-vanilla-javascript
2. Specifying Jest as Your Project’s Test Runner Tool
https://leanpub.com/creating-npm-package-with-vanilla-javascript
3. Configuring Jest to Support ECMAScript Modules
https://leanpub.com/creating-npm-package-with-vanilla-javascript
4. Configuring Babel to Use the @babel/preset-env Preset
https://leanpub.com/creating-npm-package-with-vanilla-javascript
5. Configuring Jest’s Testing Environment
https://leanpub.com/creating-npm-package-with-vanilla-javascript
6. Creating Your Code Files
https://leanpub.com/creating-npm-package-with-vanilla-javascript
7. Writing Your Test Case
https://leanpub.com/creating-npm-package-with-vanilla-javascript
8. Developing Your JavaScript Code
https://leanpub.com/creating-npm-package-with-vanilla-javascript
9. Running the Test
https://leanpub.com/creating-npm-package-with-vanilla-javascript
Up next
Commit Message Configuration
In this chapter
Testing JavaScript Code
1. Installing the Testing Tool
2. Specifying Jest as Your Project’s Test Runner Tool
3. Configuring Jest to Support ECMAScript Modules
4. Configuring Babel to Use the @babel/preset-env Preset
5. Configuring Jest’s Testing Environment
6. Creating Your Code Files
7. Writing Your Test Case
8. Developing Your JavaScript Code
9. Running the Test