diff --git a/discojs/discojs-core/.mocharc.json b/discojs/discojs-core/.mocharc.json index f71ebe3b0..5a26266b1 100644 --- a/discojs/discojs-core/.mocharc.json +++ b/discojs/discojs-core/.mocharc.json @@ -1,5 +1,6 @@ { + "spec": ["src"], + "recursive": true, "extension": ["ts"], - "spec": ["src/**/*.spec.ts"], "require": "ts-node/register" } diff --git a/discojs/discojs-node/.mocharc.json b/discojs/discojs-node/.mocharc.json index f71ebe3b0..5a26266b1 100644 --- a/discojs/discojs-node/.mocharc.json +++ b/discojs/discojs-node/.mocharc.json @@ -1,5 +1,6 @@ { + "spec": ["src"], + "recursive": true, "extension": ["ts"], - "spec": ["src/**/*.spec.ts"], "require": "ts-node/register" } diff --git a/discojs/discojs-node/package.json b/discojs/discojs-node/package.json index 430058255..02775fbd7 100644 --- a/discojs/discojs-node/package.json +++ b/discojs/discojs-node/package.json @@ -25,6 +25,7 @@ }, "devDependencies": { "@types/node": "20", - "nodemon": "3" + "nodemon": "3", + "ts-node": "10" } } diff --git a/discojs/discojs-web/.mocharc.json b/discojs/discojs-web/.mocharc.json index f71ebe3b0..5a26266b1 100644 --- a/discojs/discojs-web/.mocharc.json +++ b/discojs/discojs-web/.mocharc.json @@ -1,5 +1,6 @@ { + "spec": ["src"], + "recursive": true, "extension": ["ts"], - "spec": ["src/**/*.spec.ts"], "require": "ts-node/register" } diff --git a/package-lock.json b/package-lock.json index 67345c1d5..c635693d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -76,7 +76,8 @@ }, "devDependencies": { "@types/node": "20", - "nodemon": "3" + "nodemon": "3", + "ts-node": "10" } }, "discojs/discojs-web": { @@ -20168,7 +20169,8 @@ "@types/uuid": "9", "chai": "4", "mocha": "9", - "nodemon": "3" + "nodemon": "3", + "ts-node": "10" } }, "web-client": { diff --git a/server/.mocharc.json b/server/.mocharc.json index f4efa05ac..5a26266b1 100644 --- a/server/.mocharc.json +++ b/server/.mocharc.json @@ -1,6 +1,6 @@ { - "extension": ["ts"], - "spec": ["tests"], + "spec": ["src"], "recursive": true, + "extension": ["ts"], "require": "ts-node/register" } diff --git a/server/package.json b/server/package.json index 78f427df3..9f7d37a23 100644 --- a/server/package.json +++ b/server/package.json @@ -33,7 +33,8 @@ "@types/uuid": "9", "chai": "4", "mocha": "9", - "nodemon": "3" + "nodemon": "3", + "ts-node": "10" }, "repository": { "type": "git",