feat: moves project to using vitest
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type * as core from '@actions/core'
|
||||
import { jest } from '@jest/globals'
|
||||
import { vi } from 'vitest'
|
||||
|
||||
export const debug = jest.fn<typeof core.debug>()
|
||||
export const error = jest.fn<typeof core.error>()
|
||||
export const info = jest.fn<typeof core.info>()
|
||||
export const getInput = jest.fn<typeof core.getInput>()
|
||||
export const getBooleanInput = jest.fn<typeof core.getBooleanInput>()
|
||||
export const setOutput = jest.fn<typeof core.setOutput>()
|
||||
export const setFailed = jest.fn<typeof core.setFailed>()
|
||||
export const warning = jest.fn<typeof core.warning>()
|
||||
export const debug = vi.fn<typeof core.debug>()
|
||||
export const error = vi.fn<typeof core.error>()
|
||||
export const info = vi.fn<typeof core.info>()
|
||||
export const getInput = vi.fn<typeof core.getInput>()
|
||||
export const getBooleanInput = vi.fn<typeof core.getBooleanInput>()
|
||||
export const setOutput = vi.fn<typeof core.setOutput>()
|
||||
export const setFailed = vi.fn<typeof core.setFailed>()
|
||||
export const warning = vi.fn<typeof core.warning>()
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { jest } from '@jest/globals'
|
||||
import { vi } from 'vitest'
|
||||
|
||||
export const wait = jest.fn<typeof import('../src/wait.js').wait>()
|
||||
export const wait = vi.fn<typeof import('../src/wait.js').wait>()
|
||||
|
||||
Reference in New Issue
Block a user