View Code? Open in Web Editor
NEW
JavaScript Unit Testing - Jest Testing Framework Basics
brad_traversy-youtube_tutorials-01-jest_testing_basics's Introduction
Brad Traversy - Youtube tutorials 01 - Jest Crash Course
JavaScript Unit Testing - Jest Testing Framework Basics
- "npm i" to download node_modules
- "npm test" to run the tests
- "npm run testwatch" to run tests every time a file is changed
- Testing equality on primitive values
- Testing for Truthy & Falsy values
- Testing non-primitive values
- Testing intervals
- Testing strings with regular expressions
- Testing arrays
- Working with async data
- Testing if the function defined
- Testing if string reverses
- Testing upper case inputs
- Testing if the function defined
- Defining inputs, and checking results separately after the function call
- Testing if the function defined
- Testing logical function
5. before/after functions
- beforeAll/afterAll
- beforeEach/afterEach
- before/after only within a describe block
brad_traversy-youtube_tutorials-01-jest_testing_basics's People
Contributors
Watchers