From d38c2064e45f2de58ba63f2dad33f19e8876b230 Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Wed, 20 Nov 2024 15:11:08 +0100 Subject: [PATCH] We already require this script to be run from the root --- script/test.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/script/test.mjs b/script/test.mjs index e425f75..c6a7d45 100644 --- a/script/test.mjs +++ b/script/test.mjs @@ -1,6 +1,4 @@ import { spawn } from 'child_process' -import { dirname, resolve, join } from 'path' -import { fileURLToPath } from 'url' import { readdir } from 'fs/promises' const files = await readdir('test', { recursive: true }).then(x => @@ -23,8 +21,7 @@ const testReporterArgs = process.env.GITHUB_ACTIONS ] : specTestReporterArgs -const scriptsDir = dirname(fileURLToPath(import.meta.url)) -process.env.LOCAL_GIT_DIRECTORY = resolve(scriptsDir, '../git/') +process.env.LOCAL_GIT_DIRECTORY = 'git' const args = ['--import', 'tsx', ...testReporterArgs, '--test', ...files] spawn('node', args, { stdio: 'inherit' }).on('exit', process.exit)