mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-25 02:21:52 -04:00
21 lines
437 B
TypeScript
21 lines
437 B
TypeScript
import tape = require('tape')
|
|
import promisifyTape from 'tape-promise'
|
|
import {
|
|
execPnpmSync,
|
|
prepare,
|
|
} from './utils'
|
|
|
|
const test = promisifyTape(tape)
|
|
|
|
test('pnpm run: returns correct exit code', async (t: tape.Test) => {
|
|
const project = prepare(t, {
|
|
scripts: {
|
|
exit0: 'exit 0',
|
|
exit1: 'exit 1',
|
|
},
|
|
})
|
|
|
|
t.equal(execPnpmSync('run', 'exit0').status, 0)
|
|
t.equal(execPnpmSync('run', 'exit1').status, 1)
|
|
})
|