mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
test: mock enquirer in typescript tests (#5025)
This commit is contained in:
parent
9be8861b81
commit
ad6a8cda9a
@ -4,6 +4,9 @@ import { register } from 'ts-node'
|
||||
import { setup as setupTypeScript } from '@nuxt/typescript'
|
||||
|
||||
jest.mock('ts-node')
|
||||
jest.mock('enquirer', () => ({
|
||||
prompt: jest.fn(() => ({ confirmGeneration: true }))
|
||||
}))
|
||||
|
||||
describe('typescript setup', () => {
|
||||
const rootDir = 'tmp'
|
||||
|
Loading…
Reference in New Issue
Block a user