зеркало из https://github.com/mozilla/fxa.git
f47d120d71
Because: - ts-jest is consuming too much memory during unit test execution This commit: - Replace ts-jest with @swc/jest, which has better memory utilization - Replace Nx TSC build executor with Nx esbuild build executor, for better performance. - Reduce size of unit-test job instance size from large back to medium+ Closes #FXA-9879 |
||
---|---|---|
.. | ||
source_data | ||
src | ||
.eslintrc.json | ||
.swcrc | ||
README.md | ||
jest.config.ts | ||
package.json | ||
project.json | ||
tsconfig.json | ||
tsconfig.lib.json | ||
tsconfig.spec.json |
README.md
common-password-list
Imported from the original repo, updated for TypeScript, and restructured for vendoring.
Using
Usage:
import passwordCheck from '@fxa/vendored/common-password-list';
// returns true
passwordCheck('password');
// returns false
passwordCheck('@!#^GDSAQ@#^Q#@^$YAESFDAS');
Building
Run nx build common-password-list
to build the library.
Running unit tests
Run nx test common-password-list
to execute the unit tests via Jest.