From 715e7558f1b1f14cb7d9939eaca4810ac702af77 Mon Sep 17 00:00:00 2001 From: Pierre beucher Date: Tue, 17 Dec 2024 15:56:42 +0100 Subject: [PATCH] chore: use mocha transpile-only Mocha was incredibly slow. This issue recommands transpile-only: https://github.com/TypeStrong/ts-node/issues/754#issuecomment-863922948 --- test/unit/.mocharc.json | 2 +- test/unit/hooks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/.mocharc.json b/test/unit/.mocharc.json index a8c47e4..f526c27 100644 --- a/test/unit/.mocharc.json +++ b/test/unit/.mocharc.json @@ -1,7 +1,7 @@ { "extension": ["ts"], "require": [ - "ts-node/register", + "ts-node/register/transpile-only", "test/unit/hooks.ts" ] } diff --git a/test/unit/hooks.ts b/test/unit/hooks.ts index 5d31e6c..24905a3 100644 --- a/test/unit/hooks.ts +++ b/test/unit/hooks.ts @@ -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