unstable-commands/tests/run.test.ts
2023-07-31 03:03:39 +02:00

17 lines
365 B
TypeScript

import {expect, test} from '@jest/globals'
import {runUnstableCommand} from '../src/run'
import {getShell} from '../src/shells'
test('unstable command succeeds', async () => {
const result = await runUnstableCommand(
['echo "Hello world!"'],
await getShell('default-shell'),
process.cwd(),
1,
3,
[139]
)
expect(result).toEqual(0)
})