TypeScript API / @laikacms/astro/testing / createFakeLoaderContext
Function: createFakeLoaderContext()
ts
function createFakeLoaderContext(options?): FakeLoaderContext;Build a FakeLoaderContext.
parseData is the identity function — schema validation is Astro's job and is covered by Astro's own tests; what these tests care about is that it was called, and with which id.
Parameters
| Parameter | Type |
|---|---|
options | FakeLoaderContextOptions |