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

chore: getMaxWorkers types #8434

Merged
merged 2 commits into from
May 7, 2019
Merged

Conversation

JoshRosenstein
Copy link
Contributor

@JoshRosenstein JoshRosenstein commented May 7, 2019

Summary

Note: Creating separate isolated PR's for type adjustments that narrow the scope of effected files.
See #8436

getMaxWorkers - has capability to parse percentage strings , Therefore we should add string to its type, and remove unnecessary casting. const maxWorkers = (argv.maxWorkers as unknown) as number | string; to const maxWorkers = argv.maxWorkers. Or depreceate

Test plan

No type errors thrown on build

@codecov-io
Copy link

Codecov Report

Merging #8434 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8434   +/-   ##
=======================================
  Coverage   62.33%   62.33%           
=======================================
  Files         266      266           
  Lines       10737    10737           
  Branches     2615     2615           
=======================================
  Hits         6693     6693           
  Misses       3461     3461           
  Partials      583      583
Impacted Files Coverage Δ
packages/jest-config/src/getMaxWorkers.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2297194...0698274. Read the comment docs.

Co-Authored-By: JoshRosenstein <[email protected]>
@SimenB SimenB merged commit 985d26c into jestjs:master May 7, 2019
@JoshRosenstein JoshRosenstein deleted the types-maxworkers branch May 13, 2019 23:04
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants