Skip to content
Myr

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 file

Take it

Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d

lines 1–2why, one step back
1#!/usr/bin/env node
2import process from 'node:process';

Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b

line 3why, one step back
3import {execa, execaSync} from '../../index.js';

Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d

lines 4–5why, one step back
4import {foobarUtf16Uint8Array} from '../helpers/input.js';
5

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 6why, one step back
6const [optionsString, file, isSync, ...commandArguments] = process.argv.slice(2);

Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b

lines 7–8why, one step back
7const options = {...JSON.parse(optionsString), input: foobarUtf16Uint8Array};
8if (isSync === 'true') {

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 9why, one step back
9 execaSync(file, commandArguments, options);

Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b

line 10why, one step back
10} else {

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 11why, one step back
11 await execa(file, commandArguments, options);

Add more tests for the `verbose: 'full'` option (#961)ehmickybefore adoption10fdc8b

line 12why, one step back
12}