Skip to content

Commit

Permalink
--transpileOnly for faster setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Jun 27, 2023
1 parent 7c748f0 commit 1dbe6a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/integration-tests/scripts/run-fixture-setups.ts
Original file line number Diff line number Diff line change
@@ -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"))
Expand All @@ -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}`, {

Check warning

Code scanning / CodeQL

Shell command built from environment values Medium

This shell command depends on an uncontrolled
file name
.
stdio: "inherit",
});
}
});

0 comments on commit 1dbe6a4

Please sign in to comment.