зеркало из https://github.com/mozilla/fxa.git
d866a06d76
Because: *We want to upgrade to Tailwind v3 and update other related outdated dependencies This commit: *Upgrades storybook packages across the board, upgrades autoprefixer, removes postcss-7 compatibility package and postcss-cli, installs postcss per Tailwind requirement *Upgrades fxa-admin-panel to Tailwind v3 *Upgrades fxa-react to Tailwind v3, changing Portal from SCSS to CSS to remove a build step *Upgrades fxa-settings to Tailwind v3, first transforming our SCSS to CSS before it’s sent to PostCSS. There will be a follow up to change our SCSS files to CSS and use PostCSS plugins instead *Upgrades fxa-payments-server to Tailwind v3, decoupling SCSS from the Tailwind out file since payments will be using Tailwind exclusively in the next few months. Makes Storybook more consistent with other packages |
||
---|---|---|
.. | ||
.storybook | ||
components | ||
configs | ||
images | ||
lib | ||
scripts | ||
styles | ||
.eslintrc.json | ||
.prettierignore | ||
CHANGELOG.md | ||
LICENSE | ||
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
npm run test -- ComponentName
# Grep for "description"
npm run test -- -t "description"
# Watch files for changes and re-run
npm run test -- --watch
Refer to Jest's CLI documentation for more advanced test configuration.
License
MPL-2.0