Skip to content

Commit

Permalink
Fix locale issue #10014 (#11412)
Browse files Browse the repository at this point in the history
  • Loading branch information
vozzen authored May 16, 2021
1 parent ecb0a9b commit b16082c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
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. ([#11412](https://github.com/facebook/jest/pull/11412))
- `[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 @@ -2594,7 +2594,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 @@ -13411,7 +13411,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

0 comments on commit b16082c

Please sign in to comment.