Skip to content

Commit

Permalink
Install testing packages for server, setup config
Browse files Browse the repository at this point in the history
What:

1) Install jest and supertest
2) Set jest to ignore /dist, /static, /node_modules

Why:

1) supertest is useful for mocking http requests
2) Only test server/src
  • Loading branch information
bryce-mcmath committed Mar 27, 2020
1 parent 80556c4 commit f96161c
Show file tree
Hide file tree
Showing 4 changed files with 6,396 additions and 1,405 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DATABASE_URL=postgres://<user>:<pw>@<instance>:5432/<db_name>
TEST_DATABASE_URL=postgres://<user>:<pw>@<test_instance>:5432/<test_db_name>
ALPHA_VANTAGE_KEY=
JWT_SECRET=jonistheman
SALT=10
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e --mode development",
"test:e2e": "vue-cli-service test:e2e --mode test",
"lint": "vue-cli-service lint",
"jsdoc": "./node_modules/.bin/jsdoc . -c ./jsdocs.json -R ../README.md",
"test": "npm run test:unit"
Expand Down
Loading

0 comments on commit f96161c

Please sign in to comment.