Merge pull request #4825 from thelounge/testingSetup

Testing setup
This commit is contained in:
Max Leiter 2024-01-27 15:40:09 -08:00 committed by GitHub
commit 2b146ba3e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -25,8 +25,9 @@
"lint:stylelint": "stylelint --color \"client/**/*.css\"",
"lint": "run-p --aggregate-output --continue-on-error lint:*",
"start": "node index start",
"test": "run-p --aggregate-output --continue-on-error lint:* test:*",
"test:mocha": "cross-env NODE_ENV=test webpack --mode=development && cross-env NODE_ENV=test TS_NODE_PROJECT='./test/tsconfig.json' nyc --nycrc-path=test/.nycrc-mocha.json mocha --require ts-node/register --colors --config=test/.mocharc.yml",
"test": "run-p --aggregate-output --continue-on-error lint:* test:mocha",
"test:mocha": "webpack --mode=development && cross-env NODE_ENV=test TS_NODE_PROJECT='./test/tsconfig.json' mocha --config=test/.mocharc.yml 'test/**/*.ts'",
"test:nospec": "webpack --mode=development && cross-env NODE_ENV=test TS_NODE_PROJECT='./test/tsconfig.json' mocha --config=test/.mocharc.yml",
"watch": "webpack --watch",
"githooks-install": "git config core.hooksPath scripts/git-hooks"
},

View file

@ -2,8 +2,6 @@ color: true
check-leaks: true
recursive: true
reporter: dot
interactive: false
spec: "test/**/*.ts"
ignore: "test/client/**"
extension: ["ts", "js"]
require: