Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.39 KB

File metadata and controls

20 lines (16 loc) · 1.39 KB

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.