Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@not-govuk/component-test-helpers

daniel-ac-martin1.6kMIT0.16.3TypeScript support: included

Helper functions for testing React components.

readme

Not Govuk - Component Test Helpers

Helper functions for testing React components.

Using this package

First install the package into your project:

npm install -S @not-govuk/component-test-helpers

Then use it in your code as follows:

import componentTestHelpers from '@not-govuk/component-test-helpers';

// WRITEME

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Building

npm run build

Clean-up

npm run clean