mise-action/__tests__/main.test.ts
2023-02-20 23:27:49 -06:00

14 lines
442 B
TypeScript

import * as process from 'process'
import * as cp from 'child_process'
import * as path from 'path'
import {expect, test, jest} from '@jest/globals'
import {run} from '../src/main'
import {exec, getExecOutput} from '@actions/exec'
jest.mock('@actions/exec')
// shows how the runner will run a javascript action with env / stdout protocol
test.skip('install', async () => {
await run()
expect(exec).toBeCalledWith('rtx', ['install'])
})