Skip to content

fix: Change start command to npm run start:test in workflow#1

Open
FilipKod wants to merge 1 commit into
fullstack-hy2020:mainfrom
FilipKod:patch-1
Open

fix: Change start command to npm run start:test in workflow#1
FilipKod wants to merge 1 commit into
fullstack-hy2020:mainfrom
FilipKod:patch-1

Conversation

@FilipKod

Copy link
Copy Markdown

In the course material, we are instructed to add the npm script "start:test": "TESTING=true node index.js". However, test.yml currently runs the app via npm start (without the testing environment), but provides TEST_DATABASE_URL. This causes a configuration mismatch and a crash because the app looks for DATABASE_URL instead. Changing it to npm run start:test fixes the issue.

… with course material

In the course material, we are instructed to add the npm script "start:test": "TESTING=true node index.js". However, test.yml currently runs the app via npm start (without the testing environment), but provides TEST_DATABASE_URL. This causes a configuration mismatch and a crash because the app looks for DATABASE_URL instead. Changing it to npm run start:test fixes the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant