mise-action/__tests__/main.test.ts
Jeff Dickey 67b1e31166 init
2023-01-14 08:36:43 -06:00

14 lines
422 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} from '@actions/exec'
jest.mock('@actions/exec')
// shows how the runner will run a javascript action with env / stdout protocol
test('install', async () => {
await run()
expect(exec).toBeCalledWith('rtx', ['install'])
})