@codecademy/gamut-tests
TypeScript icon, indicating that this package has built-in type declarations

5.0.10 • Public • Published

gamut-tests

Shared component test setup for Gamut applications. ✨

A wrapper around component-test-setup that wraps the node with an @emotion/react+gamut-styles <ThemeProvider theme={theme}>. Use this instead of component-test-setup to test Gamut components in Gamut apps!

Usage

The API is functionally the same component-test-setup:

import { setupRtl } from '@codecademy/gamut-tests';

const renderView = setupRtl(MyComponent, { prop: true });

const { view } = renderView();

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @codecademy/gamut-tests

    Weekly Downloads

    2,271

    Version

    5.0.10

    License

    MIT

    Unpacked Size

    6.06 kB

    Total Files

    5

    Last publish

    Collaborators

    • codecademy