Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix locale issue #10014 #11412

Merged
merged 2 commits into from May 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
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
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
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
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
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