use cross-env to send parameters in an easier manner

This commit is contained in:
theofficialomega
2025-07-30 22:48:52 +02:00
parent 69970ccf1a
commit 59a23b743c
11 changed files with 2378 additions and 1272 deletions

View File

@@ -1,16 +1,12 @@
import { execSync } from 'child_process'
import fs from 'fs-extra'
import os from 'os'
type ExecError = {
status: number
stdout: string
}
let ENV_VAR = 'DATA_DIR=tests/__data__/input/data'
if (os.platform() === 'win32') {
ENV_VAR = 'SET "DATA_DIR=tests/__data__/input/data" &&'
}
const ENV_VAR = 'cross-env DATA_DIR=tests/__data__/input/data'
beforeEach(() => {
fs.emptyDirSync('tests/__data__/output')