summaryrefslogtreecommitdiff
path: root/integration-tests/run-tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/run-tests.js')
-rw-r--r--integration-tests/run-tests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/integration-tests/run-tests.js b/integration-tests/run-tests.js
index 05fb349e..b33e1afa 100644
--- a/integration-tests/run-tests.js
+++ b/integration-tests/run-tests.js
@@ -52,13 +52,13 @@ async function main() {
const testPatterns =
args.length > 0
- ? args.map((arg) => `integration-tests/${arg}.test.js`)
- : ['integration-tests/*.test.js'];
+ ? args.map((arg) => `integration-tests/${arg}.test.ts`)
+ : ['integration-tests/*.test.ts'];
const testFiles = glob.sync(testPatterns, { cwd: rootDir, absolute: true });
for (const testFile of testFiles) {
const testFileName = basename(testFile);
- console.log(`\tFound test file: ${testFileName}`);
+ console.log(` Found test file: ${testFileName}`);
}
const MAX_RETRIES = 3;
@@ -92,7 +92,7 @@ async function main() {
}
nodeArgs.push(testFile);
- const child = spawn('node', nodeArgs, {
+ const child = spawn('npx', ['tsx', ...nodeArgs], {
stdio: 'pipe',
env: {
...process.env,