I want harness page to load the sample data from JSON files so that I can simulate the dataset component using data downloaded from Dynamics Web API. JSON files can be placed under pcf-script.
I like the idea as well, a few more options to use real datasets. preferably with less coding (eg. point it to a CDS or D365 datasource, pick an entity or provide a fetch query)... i know thats a bit of an ask.
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/debugging-custom-controls#t...
For dataset type components, you can load a CSV file with test data. You manually create or export in .csv format directly from your environment.