@bcgov/design-system-react-components 0.0.6 → 0.0.7-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -79,7 +79,7 @@ export default function App() {
79
79
 
80
80
  This package has a peer dependency on `react` and `react-dom` at these versions: `"^16.14.0 || ^17.0.0-rc.1 || ^18.0.0"`
81
81
 
82
- By targeting v16.4.0 as a minimum, we get to use [React's modern JSX transformation](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) in `tsconfig.json`:
82
+ By targeting v16.14.0 as a minimum, we get to use [React's modern JSX transformation](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) in `tsconfig.json`:
83
83
 
84
84
  ```json
85
85
  "jsx": "react-jsx",
@@ -97,12 +97,20 @@ This project follows semantic versioning. See [CHANGELOG.md](./CHANGELOG.md) for
97
97
 
98
98
  Components live in `./src/components` and are targeted by the build process with an export in `./src/index.ts`.
99
99
 
100
+ #### Testing components with Jest
101
+
102
+ Unit tests can be run with Jest using `npm run test`.
103
+
100
104
  ### Storybook
101
105
 
102
106
  Storybook stories live in `./src/stories`.
103
107
 
104
108
  Run `npm run storybook-dev` to access the Storybook instance for the component library.
105
109
 
110
+ #### Testing with Storybook Test Runner
111
+
112
+ With Storybook running locally, use the `npm run test-storybook` script to run `@storybook/test-runner` using the configuration defined in `./.storybook/test-runner.ts`. [Learn more about Storybook Test Runner](https://storybook.js.org/docs/writing-tests/test-runner).
113
+
106
114
  ### Vite kitchen sink application
107
115
 
108
116
  Vite uses the components code directly from `./src/components` in groups of content in `./src/pages`.