Skip to content

Commit

Permalink
🎨 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed Nov 20, 2024
1 parent 0a12822 commit 019f99d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions script/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ const testReporterArgs = process.env.GITHUB_ACTIONS
]
: specTestReporterArgs

spawn('node', ['--import', 'tsx', ...testReporterArgs, '--test', ...files], {
stdio: 'inherit',
env: {
...process.env,
LOCAL_GIT_DIRECTORY: resolve(
dirname(fileURLToPath(import.meta.url)),
'../git/'
),
},
}).on('exit', process.exit)
const scriptsDir = dirname(fileURLToPath(import.meta.url))
process.env.LOCAL_GIT_DIRECTORY = resolve(scriptsDir, '../git/')
const args = ['--import', 'tsx', ...testReporterArgs, '--test', ...files]

spawn('node', args, { stdio: 'inherit' }).on('exit', process.exit)

0 comments on commit 019f99d

Please sign in to comment.