Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 860 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 860 Bytes

Lookup Objects Mock

Mocking PCF lookupObjects to simplify writing stories for your components.

Screenshots

LookupScreenshot

Usage

First you should install @shko.online/lookupobjects-mock in your project:

npm i -D @shko.online/lookupobjects-mock

then in your story you add the following call:

import mockLookupObjects from '@shko.online/lookupobjects-mock'
// ...

//before executing Init exectute mockLookupObjects()
// ...
    mockLookupObjects(mockGenerator);
    mockGenerator.ExecuteInit();
// ...

License

MIT