Skip to content

Commit

Permalink
We already require this script to be run from the root
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed Nov 20, 2024
1 parent 019f99d commit d38c206
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions script/test.mjs
Original file line number Diff line number Diff line change
@@ -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 =>
Expand All @@ -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)

0 comments on commit d38c206

Please sign in to comment.