Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
- Upgrade camelcase version for jest-validate workspace.
- Call `camelcase` function providing `en-US` as locale while validating CLI options.
  • Loading branch information
vozzen committed May 12, 2021
commit 949e0d28cfeb5e4a990e7dffb9f46140c13b9f0f
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
- `[jest-transform]` [**BREAKING**] Refactor API of transformers to pass an options bag rather than separate `config` and other options ([#10834](https://github.com/facebook/jest/pull/10834))
- `[jest-types]` Fix `Config.ts` `projects` types ([#11285](https://github.com/facebook/jest/pull/11285))
- `[jest-util]` Replace micromatch with picomatch to fix issues with negated globs ([#11287](https://github.com/facebook/jest/pull/11287))
- `[jest-validate]` Use `en-US` locale to avoid case conversion problems while validating CLI options on machines with some certain locales(e.g. Turkish) set as default locale.
- `[jest-worker]` [**BREAKING**] Use named exports ([#10623](https://github.com/facebook/jest/pull/10623))
- `[jest-worker]` Do not swallow errors during serialization ([#10984](https://github.com/facebook/jest/pull/10984))
- `[jest-worker]` Handle `ERR_IPC_CHANNEL_CLOSED` errors properly ([#11143](https://github.com/facebook/jest/pull/11143))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ansi-regex": "^5.0.0",
"ansi-styles": "^5.0.0",
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
"camelcase": "^6.0.0",
"camelcase": "^6.2.0",
"chalk": "^4.0.0",
"chokidar": "^3.3.0",
"codecov": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@jest/types": "^27.0.0-next.8",
"camelcase": "^6.0.0",
"camelcase": "^6.2.0",
"chalk": "^4.0.0",
"jest-get-type": "^27.0.0-next.9",
"leven": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-validate/src/validateCLIOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function validateCLIOptions(
);
const unrecognizedOptions = Object.keys(argv).filter(
arg =>
!allowedOptions.has(camelcase(arg)) &&
!allowedOptions.has(camelcase(arg, {locale: 'en-US'})) &&
!allowedOptions.has(arg) &&
(!rawArgv.length || rawArgv.includes(arg)),
[],
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,7 @@ __metadata:
ansi-regex: ^5.0.0
ansi-styles: ^5.0.0
babel-plugin-replace-ts-export-assignment: ^0.0.2
camelcase: ^6.0.0
camelcase: ^6.2.0
chalk: ^4.0.0
chokidar: ^3.3.0
codecov: ^3.0.0
Expand Down Expand Up @@ -13352,7 +13352,7 @@ fsevents@^1.2.7:
dependencies:
"@jest/types": ^27.0.0-next.8
"@types/yargs": ^16.0.0
camelcase: ^6.0.0
camelcase: ^6.2.0
chalk: ^4.0.0
jest-get-type: ^27.0.0-next.9
leven: ^3.1.0
Expand Down