Tests

Tests can appear anywhere in the project, but our preference has been to write component tests within the component folder.

components/
... Button/
....... index.js
....... spec.js    <- button tests

Note: Tests must be within a __tests__/ directory, or have a .spec.js or .test.js suffix in order to be picked up by Jest.

results matching ""

    No results matching ""