How to use @bbc/psammead-test-helpers - 5 common examples

To help you get started, we’ve selected a few @bbc/psammead-test-helpers 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 bbc / psammead / packages / components / psammead-image / src / testHelpers / snapshotTests.jsx View on Github external
width={square.width}
      {...additionalProps}
    />,
  );
  shouldMatchSnapshot(
    'should render image with custom dimensions correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render image with srcset correctly',
    ,
  );
};
github bbc / psammead / packages / components / psammead-image / src / testHelpers / snapshotTests.jsx View on Github external
width={landscape.width}
      {...additionalProps}
    />,
  );
  shouldMatchSnapshot(
    'should render portrait image correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render square image correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render image with custom dimensions correctly',
github bbc / psammead / packages / components / psammead-image / src / testHelpers / snapshotTests.jsx View on Github external
const snapshotTests = (Component, additionalProps) => {
  shouldMatchSnapshot(
    'should render landscape image correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render portrait image correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render square image correctly',
github bbc / psammead / packages / components / psammead-image / src / testHelpers / snapshotTests.jsx View on Github external
width={portrait.width}
      {...additionalProps}
    />,
  );
  shouldMatchSnapshot(
    'should render square image correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render image with custom dimensions correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render image with srcset correctly',
github bbc / psammead / packages / components / psammead-image / src / testHelpers / snapshotTests.jsx View on Github external
const snapshotTests = (Component, additionalProps) => {
  shouldMatchSnapshot(
    'should render landscape image correctly',
    ,
  );
  shouldMatchSnapshot(
    'should render portrait image correctly',

@bbc/psammead-test-helpers

A collection of helper methods for implementing Jest snapshot tests for emotion, required by many Psammead components.

Apache-2.0
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Popular @bbc/psammead-test-helpers functions