Because --files does not work
if [ "$1" = "misc" ]; then
npm run build -- --light
- mocha --timeout 5000 --exit --require ts-node/register --files --require tsconfig-paths/register --bail server/tests/client.ts \
+ TS_NODE_FILES=true mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail \
+ server/tests/client.ts \
server/tests/feeds/index.ts \
server/tests/misc-endpoints.ts \
server/tests/helpers/index.ts \
redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo)
activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo)
-MOCHA_PARALLEL=true npm run mocha -- --parallel --jobs $1 --timeout 30000 --exit \
- --require ts-node/register --files --require tsconfig-paths/register --bail \
+TS_NODE_FILES=true MOCHA_PARALLEL=true npm run mocha -- --parallel --jobs $1 --timeout 30000 --exit \
+ --require ts-node/register --require tsconfig-paths/register --bail \
$redundancyFiles $activitypubFiles
"@shared/*": [ "shared/*" ]
}
},
- "include": [ "." ],
"exclude": [
"server/tools/",
"node_modules",