-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jest-binary-data-matchers): remove unnecessary dependencies: jes…
…t-matcher-utils (#425) * feat(jest-binary-data-matchers): remove unnecessary dependencies from core code: jest-matcher-utils `this.utils` is injected into all the matchers. `this.utils` is almost equal to the exports from `jest-matcher-utils`. see https://jestjs.io/docs/expect#thisutils Therefore, no need to include `jest-matcher-utils` in the dependencies. * chore(jest-binary-data-matchers): remove `jest-matcher-utils` * test(jest-binary-data-matchers): force enable Jest highlighting output using `--color` option Tests that require color output fail. Probably due to Jest color output being disabled. * test(jest-binary-data-matchers): force enable Jest highlighting output using `--color=true` option Tests that require color output fail. Probably due to Jest color output being disabled. * test(jest-binary-data-matchers): force enable Jest highlighting output using `FORCE_COLOR` env Tests that require color output fail. Probably due to Jest color output being disabled. * test(jest-binary-data-matchers): remove `jest.setup.cjs` The `jest.setup.cjs` file was used to set the `FORCE_COLOR` environment variable within Jest's test environment. However, this is no longer necessary since `cross-env` is now used instead. * refactor(jest-binary-data-matchers): reduce lines in `createCompareByteSizeMatcher()` function Code Climate reported: + Function `createCompareByteSizeMatcher` has 27 lines of code (exceeds 25 allowed). Consider refactoring. * refactor(jest-binary-data-matchers): reduce similar blocks Code Climate reported: + Similar blocks of code found in 2 locations. Consider refactoring.
- Loading branch information
1 parent
96b148f
commit 7ea12c6
Showing
6 changed files
with
37 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.