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)