Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow npm run test to work in isolation #34

Merged
merged 1 commit into from
Jan 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
run: npm run lint

- name: Run tests
env:
ROOT_URL: http://localhost:4444/
MEDIA_ENDPOINT_URL: http://localhost:3334/
run: npm test

- name: Deploy
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ jobs:
run: npm run lint

- name: Run tests
env:
MEDIA_ENDPOINT_URL: http://localhost:3334/
ROOT_URL: http://localhost:4444/
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Personal website Micropub server",
"scripts": {
"start": "PORT=3333 arc sandbox",
"test": "NODE_ENV=testing PORT=3334 tape test/*-test.js",
"test": "NODE_ENV=testing PORT=3334 MEDIA_ENDPOINT_URL=http://localhost:3334/ ROOT_URL=http://localhost:4444/ tape test/*-test.js",
"lint": "standard"
},
"dependencies": {
Expand Down