Mocking Dataverse Lookup Objects to simplify writing soties for PCF components
npm install @shko.online/lookupobjects-mock
lookupObjects to simplify writing stories for your components.
@shko.online/lookupobjects-mock in your project:
cmd
npm i -D @shko.online/lookupobjects-mock
`
then in your story you add the following call:
`javascript
import mockLookupObjects from '@shko.online/lookupobjects-mock'
// ...
//before executing Init exectute mockLookupObjects()
// ...
mockLookupObjects(mockGenerator);
mockGenerator.ExecuteInit();
// ...
``