From 1dbe6a410e0832f2c899a6d7b5ed4f5acfc7806d Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Tue, 27 Jun 2023 14:27:44 +0200 Subject: [PATCH] --transpileOnly for faster setup --- packages/integration-tests/scripts/run-fixture-setups.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/integration-tests/scripts/run-fixture-setups.ts b/packages/integration-tests/scripts/run-fixture-setups.ts index 7bd4ec6f..07b0678f 100644 --- a/packages/integration-tests/scripts/run-fixture-setups.ts +++ b/packages/integration-tests/scripts/run-fixture-setups.ts @@ -1,5 +1,6 @@ import fs from "fs"; import path from "path"; +import childProcess from "child_process"; const fixturePaths = fs .readdirSync(path.join(__dirname, "..", "fixtures")) @@ -8,6 +9,8 @@ const fixturePaths = fs fixturePaths.forEach((fixturePath) => { const setupScriptPath = path.join(fixturePath, "setup.ts"); if (fs.existsSync(setupScriptPath)) { - require(setupScriptPath); + childProcess.execSync(`yarn ts-node --transpileOnly ${setupScriptPath}`, { + stdio: "inherit", + }); } });