Skip to content

Commit

Permalink
Make mocha 8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kraklin committed Jun 25, 2020
1 parent 2e061f3 commit a0d92d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"diff": true,
"extension": ["ts"],
"package": "./package.json",
"reporter": "spec",
"slow": 75,
"timeout": 2000,
"ui": "bdd",
"watch-files": ["test/**/*.ts"]
}
5 changes: 0 additions & 5 deletions mocha.opts

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"private": false,
"scripts": {
"pegjs": "pegjs --plugin ./node_modules/ts-pegjs/src/tspegjs -o src/elm-debug-parser.ts src/elm-debug.pegjs",
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --opts mocha.opts",
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register --require jsdom-global/register",
"build": "yarn run pegjs && webpack",
"prepublishOnly": "yarn run test && yarn run build"
},
Expand Down

0 comments on commit a0d92d9

Please sign in to comment.