Skip to content

Commit

Permalink
mocha.opts is out of support since v8
Browse files Browse the repository at this point in the history
Now it works with the dev container.
  • Loading branch information
KeesCBakker committed May 1, 2024
1 parent 95554db commit 156018a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye

# Install the npm packages globally
RUN npm install -g npm \
RUN npm install -g npm@10.7.0 \
&& npm install -g npm-check-updates

COPY ./startup.sh /
Expand Down
9 changes: 9 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"reporter": "spec",
"color": true,
"full-trace": true,
"experimental-fetch": false,
"timeout": 200,
"spec": "test/**/*-test.js"
}

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"main": "index.js",
"scripts": {
"test": "mocha \"test/**/*.js\" --reporter spec --no-experimental-fetch --timeout 200",
"test-with-coverage": "nyc --reporter=text mocha \"test/**/*.js\" --reporter spec",
"test": "mocha",
"test-with-coverage": "nyc --reporter=text mocha",
"bootstrap": "script/bootstrap",
"prepare": "husky",
"lint": "eslint src/ test/"
Expand Down
6 changes: 0 additions & 6 deletions test/mocha.opts

This file was deleted.

0 comments on commit 156018a

Please sign in to comment.