@shko.online/lookupobjects-mock
Version:
Mocking Dataverse Lookup Objects to simplify writing soties for PCF components
36 lines (21 loc) • 895 B
Markdown
Mocking PCF [`lookupObjects`](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/utility/lookupobjects) to simplify writing stories for your components.

First you should install `@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();
// ...
```
[](https://github.com/Shko-Online/LookupObjects-Mock/blob/main/LICENSE)