Skip to content

Commit

Permalink
Copy node test files from correct place, and tidy greedy mocha test
Browse files Browse the repository at this point in the history
Using '**/*.spec.js' on the file root raises
errors as Mocha tries to read procfs and so on
  • Loading branch information
mrchrisadams committed May 16, 2024
1 parent 4ddbc36 commit 9a06c88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion green_metric_tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Integration tests for the Greencheck API, intended for use with the Green Metrics Tool from Green Code Berlin. (https://www.green-coding.io/projects/green-metrics-tool/)",
"main": "index.js",
"scripts": {
"test": "mocha '**/*.spec.js'"
"test": "mocha '/*.spec.js'"
},
"author": "James Camilleri",
"license": "SEE LICENSE IN ../LICENCE",
Expand Down
4 changes: 2 additions & 2 deletions usage_scenario.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ services:
depends_on:
- django
setup-commands:
- cp ./green_metric_tests/greencheck_test.spec.js .
- cp ./green_metric_tests/package.json .
- cp /tmp/repo/green_metric_tests/greencheck_test.spec.js .
- cp /tmp/repo/green_metric_tests/package.json .
- npm install
networks:
- greencheck-network
Expand Down

0 comments on commit 9a06c88

Please sign in to comment.