UNPKG

react-native-integrate

Version:

Automate integration of additional code into React Native projects

31 lines (30 loc) 853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mockPrompter = void 0; const mockPrompterSpinner = { start: jest.fn(), stop: jest.fn(), message: jest.fn(), }; exports.mockPrompter = { intro: jest.fn(), log: { step: jest.fn(), info: jest.fn(), warn: jest.fn(), warning: jest.fn(), error: jest.fn(), success: jest.fn(), message: jest.fn(), }, outro: jest.fn(), spinner: () => mockPrompterSpinner, confirm: jest.fn(() => true), multiselect: jest.fn(({ options }) => options.map(x => x.value)), select: jest.fn(({ options }) => options[0].value), text: jest.fn(() => 'test'), cancel: jest.fn(), isCancel: jest.fn(() => false), note: jest.fn(), }; jest.mock('@clack/prompts', () => exports.mockPrompter);