Skip to content
Myr

nested-double.js

This file

Path

test/fixtures/nested-double.js

10 lines · 393 bytes · JavaScript

Last changed by

Refactor test helpers for the `verbose` option (#1128)ehmickybefore adoption18d320f

History of this file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 1why, one step back
1#!/usr/bin/env node

Refactor test helpers for the `verbose` option (#1128)ehmickybefore adoption18d320f

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

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 3why, one step back
3

Refactor test helpers for the `verbose` option (#1128)ehmickybefore adoption18d320f

line 4why, one step back
4const {file, commandArguments, options} = await getOneMessage();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 5–7why, one step back
5const firstArguments = commandArguments.slice(0, -1);
6const lastArgument = commandArguments.at(-1);7await Promise.all([

Refactor test helpers for the `verbose` option (#1128)ehmickybefore adoption18d320f

lines 8–9why, one step back
8 execa(file, [...firstArguments, lastArgument], options),
9 execa(file, [...firstArguments, lastArgument.toUpperCase()], options),

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 10why, one step back
10]);