6.0.1 • Published 2 years ago

@advanced-rest-client/arc-mock v6.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

ArcMock

Generates data for ARC demo pages and tests scenarios.

Published on NPM

tests

Note API surface changed in version 4.x.

Usage

Installation

npm install --save @advanced-rest-client/arc-mock

In a test scenario

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', () => {
    // ...
  });
});

Development

git clone https://github.com/advanced-rest-client/arc-mock
cd arc-mock
npm install

Running the tests

npm test