Skip to content

Commit 1aa2ba2

Browse files
alcpereiraDevinCLane
authored andcommitted
test: fix missing env variable for backend test
1 parent da50ac4 commit 1aa2ba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"start": "npm run client:build && npm run server:start",
2626
"start-client": "cd client && npm start",
2727
"test": "concurrently \"npm:test:backend\" \"npm:test:frontend\"",
28-
"test:backend": "cross-env MOCK_USER=true jest --coverage --coverage-reporters=\"json\" && mkdir -p .nyc_output && mv coverage/coverage-final.json .nyc_output/coverage-final.json",
28+
"test:backend": "cross-env MOCK_USER=true DISCORD_CLIENT_ID=1 jest --coverage --coverage-reporters=\"json\" && mkdir -p .nyc_output && mv coverage/coverage-final.json .nyc_output/coverage-final.json",
2929
"test:e2e": "cross-env MOCK_USER=false NODE_ENV=test DB_STRING=mongodb://127.0.0.1:27017/ DISCORD_CLIENT_ID=1 DISCORD_CLIENT_SECRET=1 concurrently --success command-cypress --kill-others --names client,mongodb,server,cypress \"npm:client:start\" \"npm:server:dev:mongo\" \"wait-on http-get://localhost:27017/ && npm run --workspace=server start:coverage\" \"wait-on http://localhost:3000 && cypress run\"",
3030
"test:e2e:dev": "cross-env MOCK_USER=false NODE_ENV=test DB_STRING=mongodb://127.0.0.1:27017/ DISCORD_CLIENT_ID=1 DISCORD_CLIENT_SECRET=1 concurrently --success command-cypress --kill-others --names client,mongodb,server,cypress \"npm:client:start\" \"npm:server:dev:mongo\" \"wait-on http-get://localhost:27017/ && npm run --workspace=server start:coverage\" \"wait-on http://localhost:3000 && cypress open\"",
3131
"test:frontend": "echo \"No tests yet\" && exit 0"

0 commit comments

Comments
 (0)