зеркало из https://github.com/mozilla/fxa.git
eaaa20d11f
Because: * Many stories were not loading This commit: * Re-add react import where it was missing Closes #FXA-9773 |
||
---|---|---|
.. | ||
.storybook | ||
components | ||
configs | ||
lib | ||
scripts | ||
styles | ||
.eslintrc.json | ||
.prettierignore | ||
Gruntfile.js | ||
README.md | ||
extract-imported-components.js | ||
jest.config.js | ||
package.json | ||
pm2.config.js | ||
postcss.config.js | ||
setupTests.ts | ||
svg-transform.js | ||
tailwind.config.js | ||
tsconfig.json |
README.md
Shared components for FxA React Apps
Testing
This package uses Jest to test its code. By default npm test
will test all JS files under src/
.
Test specific tests with the following commands:
# Test for the component ComponentName
yarn test -- ComponentName
# Grep for "description"
yarn test -- -t "description"
# Watch files for changes and re-run
yarn test -- --watch
Refer to Jest's CLI documentation for more advanced test configuration.
License
MPL-2.0