Skip to content

Commit

Permalink
test: install mock test server data during server setup
Browse files Browse the repository at this point in the history
several endpoints in test suite failing with 404 due to missing install of json-server db.json file

fixes #kiranz#30
  • Loading branch information
matmar10 committed Aug 8, 2021
1 parent 9443e46 commit ab5b0c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"scripts": {
"clean": "rm -rf ./node_modules",
"install_testapi": "cd test/api && npm install",
"install_testapi": "cd test/api && npm install && cp db_original.json db.json",
"start_testapi": "npm run install_testapi && cd test/api && node server.js",
"clean_testlogs": "rm -rf test/cli/src/logs && mkdir test/cli/src/logs",
"test": "npm run clean_testlogs && ./node_modules/.bin/mocha --timeout 10000 test/cli/*.spec.js",
Expand Down

0 comments on commit ab5b0c3

Please sign in to comment.