Category "miragejs"

Whitelist / Pass Through All XHR Endpoints By Default

Out of the box, you have to specifically tell MirageJS which endpoints to mock out and which endpoints to pass through. If your app calls an endpoint that isn'

How do you return an array of string ids using a factory in MirageJS?

In MirageJS I am trying to create a factory for a simple array model. Current code Here is my code: let server = new Server({ models: { usertab: Mod

TypeScript, Vue, and MirageJS: Problems with TS compile errors

The problem: I am required to use Vue and MirageJS in a TypeScript web app, and in that web app, I get TS compile errors. The code: import { Server, Model } fro