test: spec paths defined in mocharc

This commit is contained in:
Jonas Gloning 2023-01-08 00:26:12 +01:00
parent 8999c0fddb
commit daa74115c8
No known key found for this signature in database
GPG Key ID: 684639B5E59E7614
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
{
"$schema": "https://json.schemastore.org/mocharc",
"require": "source-map-support/register",
"require": "ts-node/register"
"require": "ts-node/register",
"spec": "test/**/*.ts"
}

View File

@ -51,9 +51,9 @@
"build": "parcel build",
"lint": "eslint --ext .js,.ts . && npm run check",
"check": "tsc --noEmit",
"test": "npm run lint && mocha \"test/**/*\"",
"coverage": "nyc mocha \"test/**/*\"",
"coverage:lcov": "nyc --reporter=lcov mocha \"test/**/*\"",
"test": "npm run lint && mocha",
"coverage": "nyc mocha",
"coverage:lcov": "nyc --reporter=lcov mocha",
"start": "dist/bin/peerjs.js --port ${PORT:=9000}",
"dev": "nodemon --watch src -e ts --exec npm run start",
"semantic-release": "semantic-release"