generator-empty.test-d.ts
This file
Path
test-d/stdio/option/generator-empty.test-d.ts
42 lines · 1.7 KiB · TypeScript
Last changed by
Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
History of this fileTake it
The walk stopped after 200 commits: lines older than 9f65b86 point at it.
Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 1why, one step back1import {expectTypeOf, expectError} from 'nz';100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 2–33why, one step back2import {3 execa,4 execaSync,5 type StdinOption,6 type StdinSyncOption,7 type StdoutStderrOption,8 type StdoutStderrSyncOption,9} from '../../../index.js';1011expectError(await execa('unicorns', {stdin: {}}));12expectError(execaSync('unicorns', {stdin: {}}));13expectError(await execa('unicorns', {stdin: [{}]}));14expectError(execaSync('unicorns', {stdin: [{}]}));1516expectError(await execa('unicorns', {stdout: {}}));17expectError(execaSync('unicorns', {stdout: {}}));18expectError(await execa('unicorns', {stdout: [{}]}));19expectError(execaSync('unicorns', {stdout: [{}]}));2021expectError(await execa('unicorns', {stderr: {}}));22expectError(execaSync('unicorns', {stderr: {}}));23expectError(await execa('unicorns', {stderr: [{}]}));24expectError(execaSync('unicorns', {stderr: [{}]}));2526expectError(await execa('unicorns', {stdio: {}}));27expectError(execaSync('unicorns', {stdio: {}}));2829expectError(await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', {}]}));30expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', {}]}));31expectError(await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [{}]]}));32expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [{}]]}));33Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 34–37why, one step back34expectTypeOf<{}>().not.toBeAssignableTo<StdinOption>();35expectTypeOf<{}>().not.toBeAssignableTo<StdinSyncOption>();36expectTypeOf<[{}]>().not.toBeAssignableTo<StdinOption>();37expectTypeOf<[{}]>().not.toBeAssignableTo<StdinSyncOption>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 38why, one step back38Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 39–42why, one step back39expectTypeOf<{}>().not.toBeAssignableTo<StdoutStderrOption>();40expectTypeOf<{}>().not.toBeAssignableTo<StdoutStderrSyncOption>();41expectTypeOf<[{}]>().not.toBeAssignableTo<StdoutStderrOption>();42expectTypeOf<[{}]>().not.toBeAssignableTo<StdoutStderrSyncOption>();