Skip to content

Latest commit

 

History

History
 
 

unit-testing__application-code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

unit-test-application-code

Load and unit test application code without loading a web page

  • Unit test your own application code libraries.
  • Import modules using ES2015.
  • Test simple math functions.
  • Test the canonical fizzbuzz test.
  • Automatically retry assertion until a given property inside an object:
    • is added or deleted
    • has expected value
  • unit test asynchronous code using promises and async / await

In cypress/e2e folder the specs show:

note: the specs load the application directly, there is no web server to start. Just do npm run cypress:run to open Cypress and run the unit tests.