13 lines
271 B
JavaScript
13 lines
271 B
JavaScript
import { rest } from 'msw';
|
|
import { setupServer } from 'msw/node';
|
|
|
|
export const server = setupServer(
|
|
rest.get('*', (req, res, ctx) => {
|
|
return res(
|
|
ctx.status(404),
|
|
ctx.json({ error: 'Not implemented' }),
|
|
);
|
|
}),
|
|
);
|
|
|
|
export { rest } from 'msw';
|