Skip to content

Commit

Permalink
chore: use mocha transpile-only
Browse files Browse the repository at this point in the history
Mocha was incredibly slow. This issue recommands transpile-only: TypeStrong/ts-node#754 (comment)
  • Loading branch information
PierreBeucher committed Dec 17, 2024
1 parent 8d23df4 commit 715e755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extension": ["ts"],
"require": [
"ts-node/register",
"ts-node/register/transpile-only",
"test/unit/hooks.ts"
]
}
2 changes: 1 addition & 1 deletion test/unit/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { PaperspaceClient, PaperspaceMachine } from '../../src/providers/papersp

export const mochaHooks = {
async beforeAll() {
console.info("Calling before hook")
console.info("Before hook: stub all side effects for unit tests")

//
// Stub side effects
Expand Down

0 comments on commit 715e755

Please sign in to comment.