Generates data for ARC demo pages and tests scenarios.
Note API surface changed in version 4.x.
npm install --save @advanced-rest-client/arc-mock
import { assert } from '@open-wc/testing';
import { ArcMock } from '@advanced-rest-client/arc-mock';
describe('Action', () => {
before(async () => {
const generator = new ArcMock();
await generator.store.insertSavedIfNotExists();
});
it('has request data', () => {
// ...
});
});
git clone https://github.com/advanced-rest-client/arc-mock
cd arc-mock
npm install
npm test