зеркало из https://github.com/mozilla/fxa.git
50b350fa2f
Because: * Switching design to text-start default instead of text-center * Some images were cut off on mobile This commit: * Update style for AppLayout * Update image styling * Various tweaks to accomodate change to text-start * Set size for Mozilla logo in Storybook sidebar * Replace placeholder image used in storybooks * Increase spacing below primary buttons Closes #FXA-10613 |
||
---|---|---|
.. | ||
.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