This repository has been archived by the owner on May 18, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add Jest and testing-library (#5)
- Add jest - Configure jest to work with [TypeScript][1] and [Gatsby][2] - Add [testing-library][3] to help with unit-testing - Refine storybook's file-glob search to match the new filename conventions In order to remove some noise, components will follow a new name convention, where each component will be be accompanied by `stories.mdx` and `test.tsx` files. TypeScript definitions for the testing-library matchers [are not used by the compiler][4], unless we manually import the matchers on each test, instead of using the `setupAfterEnvFiles` property from Jest. [1]: https://kulshekhar.github.io/ts-jest/user/config/ [2]: https://www.gatsbyjs.org/docs/unit-testing/ [3]: https://testing-library.com/docs/dom-testing-library/example-intro [4]: testing-library/jest-dom#11 (comment)
- Loading branch information