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,15 +1,11 @@
import { execSync } from 'child_process'
import os from 'node:os'
type ExecError = {
status: number
stdout: string
}
let ENV_VAR = 'ROOT_DIR=tests/__data__/input DATA_DIR=tests/__data__/input/data'
if (os.platform() === 'win32') {
ENV_VAR = 'SET "ROOT_DIR=tests/__data__/input" && SET "DATA_DIR=tests/__data__/input/data" &&'
}
const ENV_VAR = 'cross-env ROOT_DIR=tests/__data__/input DATA_DIR=tests/__data__/input/data'
describe('playlist:test', () => {
it('shows an error if the playlist contains a broken link', () => {