UNPKG

@atomazing-org/mock-plop

Version:

The `@atomazing-org/mock-plop` library is a configuration script designed for Plop, a tool aimed at automating code generation within projects utilizing templates. Specifically, this script focuses on generating and updating files associated with mocks (p

14 lines (10 loc) 261 B
import { http, HttpResponse } from 'msw' // MOCK IMPORTS const mockMainGet = http.get('/', () => // Respond with a simple text message HttpResponse.text('Welcome to the homepage!'), ) export const handlers = [ mockMainGet, // MOCK EXPORTS ]