nested-input.js
This file
Path
test/fixtures/nested-input.js
12 lines · 453 bytes · JavaScript
Last changed by
Upgrade xo (#980)ehmickybefore adoptionccfa412
History of this fileTake it
Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d
lines 1–2why, one step back1#!/usr/bin/env node2import process from 'node:process';Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b
line 3why, one step back3import {execa, execaSync} from '../../index.js';Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d
lines 4–5why, one step back4import {foobarUtf16Uint8Array} from '../helpers/input.js';5Upgrade xo (#980)ehmickybefore adoptionccfa412
line 6why, one step back6const [optionsString, file, isSync, ...commandArguments] = process.argv.slice(2);Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b
lines 7–8why, one step back7const options = {...JSON.parse(optionsString), input: foobarUtf16Uint8Array};8if (isSync === 'true') {Upgrade xo (#980)ehmickybefore adoptionccfa412
line 9why, one step back9 execaSync(file, commandArguments, options);Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b
line 10why, one step back10} else {Upgrade xo (#980)ehmickybefore adoptionccfa412
line 11why, one step back11 await execa(file, commandArguments, options);Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b
line 12why, one step back12}