Skip to content

PT000/API-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-test

A way to run tests, Creates an dynamic Backend server and SQLite-DB in the memory of the client that's running the tests. Tests all of the API (CRUD) If you want it run to an existing database just change the URL for the existense database instead of "memory" Beware of what's in seedDB it must at least have one entry in the DB! Otherwise "GET" will fail

Just type: npm test

(to run the tests, 4 tests in 1 test suite, the backend server only runs during the tests and the DB will be removed from memory when the tests are completed (beware of openHandles if the are running test that have openHandles, this example does an forceExit. The dynamic Backend server (app.js) can be used for other types tests as well)

About

Demonstrating tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published