How to use the percy-client.uploadResources function in percy-client

To help you get started, we’ve selected a few percy-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github percy / react-percy / integration-tests / react-percy / __tests__ / react-percy-tests.js View on Github external
beforeEach(() => {
  percy.createBuild.mockClear();
  percy.createSnapshot.mockClear();
  percy.finalizeBuild.mockClear();
  percy.finalizeSnapshot.mockClear();
  percy.uploadResources.mockClear();
});
github percy / react-percy / integration-tests / react-percy / __tests__ / react-percy-tests.js View on Github external
const expectPercyToHaveRunSnapshots = () => {
  const expectedSnapshots = 6;

  expect(percy.createBuild).toHaveBeenCalledTimes(1);
  expect(percy.uploadResources).toHaveBeenCalledTimes(1);
  expect(percy.createSnapshot).toHaveBeenCalledTimes(expectedSnapshots);
  expect(percy.finalizeSnapshot).toHaveBeenCalledTimes(expectedSnapshots);
  expect(percy.finalizeBuild).toHaveBeenCalledTimes(1);
};

percy-client

JavaScript API client library for Percy (https://percy.io).

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis

Similar packages