mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
test: Refactor mocha config & test scripts (#4664)
* Merge mocha config file * Simplify scripts, remove coverage path fixing Codecov is able to fix the coverage paths on its own * Readd coveragePathFixing script * Fix coverage path fix script
This commit is contained in:
@@ -17,13 +17,11 @@
|
||||
"build:type": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
||||
"release-build": "yarn build && yarn build:type",
|
||||
"check": "biome check --write",
|
||||
"test:unit-coverage": "c8 mocha --no-warnings 'tests/**/*.spec.ts'",
|
||||
"test:unit": "c8 --r lcov mocha --no-warnings 'tests/**/*.spec.ts' && node ../../scripts/coveragePathFixing.js utils",
|
||||
"test:unit:watch": "mocha --no-warnings --watch --parallel 'tests/**/*.spec.ts'",
|
||||
"test:deno-unit": "deno -A ../../node_modules/mocha/bin/mocha.js --config ../../.mocharc.base.cjs 'tests/**/*.spec.ts'",
|
||||
"test:bun-unit": "bun ../../node_modules/mocha/bin/mocha.js --config ../../.mocharc.base.cjs 'tests/**/*.spec.ts'",
|
||||
"test:type": "tsc --noEmit",
|
||||
"test:test-type": "tsc --project tests/tsconfig.json"
|
||||
"test:unit": "c8 -r lcov mocha 'tests/**/*.spec.ts' && node ../../scripts/coveragePathFixing.js utils",
|
||||
"test:deno-unit": "deno -A npm:mocha 'tests/**/*.spec.ts'",
|
||||
"test:bun-unit": "bun --bun mocha 'tests/**/*.spec.ts'",
|
||||
"test:test-type": "tsc --project tests/tsconfig.json",
|
||||
"test:type": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordeno/types": "workspace:^"
|
||||
|
||||
Reference in New Issue
Block a user