Добавить возможность добавлять заголовки в моках ответов
ExactlyNoSense opened this issue · 2 comments
ExactlyNoSense commented
Нужна возможность добавить заголовки, которые будут возвращаться из моковых ответов от сервера
Пример:
export default {
GET: [
{
response({ opts: { query } }: MiddlewareParams, res: MockCustomResponse): CanUndef<Dictionary> {
res.status = 302;
res.headers = { location: 'https://github.com/V4Fire/Core/issues/new' };
return;
}
}
]
};
shining-mind commented