Skip to content

Commit

Permalink
mocha: add ts-node dep in consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Feb 16, 2024
1 parent 1dc4a89 commit 50ea6d9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
3 changes: 2 additions & 1 deletion discojs/discojs-core/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"spec": ["src"],
"recursive": true,
"extension": ["ts"],
"spec": ["src/**/*.spec.ts"],
"require": "ts-node/register"
}
3 changes: 2 additions & 1 deletion discojs/discojs-node/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"spec": ["src"],
"recursive": true,
"extension": ["ts"],
"spec": ["src/**/*.spec.ts"],
"require": "ts-node/register"
}
3 changes: 2 additions & 1 deletion discojs/discojs-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"devDependencies": {
"@types/node": "20",
"nodemon": "3"
"nodemon": "3",
"ts-node": "10"
}
}
3 changes: 2 additions & 1 deletion discojs/discojs-web/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"spec": ["src"],
"recursive": true,
"extension": ["ts"],
"spec": ["src/**/*.spec.ts"],
"require": "ts-node/register"
}
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extension": ["ts"],
"spec": ["tests"],
"spec": ["src"],
"recursive": true,
"extension": ["ts"],
"require": "ts-node/register"
}
3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"@types/uuid": "9",
"chai": "4",
"mocha": "9",
"nodemon": "3"
"nodemon": "3",
"ts-node": "10"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 50ea6d9

Please sign in to comment.