run.test.ts 365 B

1234567891011121314151617
  1. import {expect, test} from '@jest/globals'
  2. import {runUnstableCommand} from '../src/run'
  3. import {getShell} from '../src/shells'
  4. test('unstable command succeeds', async () => {
  5. const result = await runUnstableCommand(
  6. ['echo "Hello world!"'],
  7. await getShell('default-shell'),
  8. process.cwd(),
  9. 1,
  10. 3,
  11. [139]
  12. )
  13. expect(result).toEqual(0)
  14. })