Skip to content

chore: upgrade to typescript 3.9#10031

Merged
SimenB merged 5 commits intojestjs:masterfrom
SimenB:ts-3.9
May 13, 2020
Merged

chore: upgrade to typescript 3.9#10031
SimenB merged 5 commits intojestjs:masterfrom
SimenB:ts-3.9

Conversation

@SimenB
Copy link
Copy Markdown
Member

@SimenB SimenB commented May 13, 2020

Summary

https://devblogs.microsoft.com/typescript/announcing-typescript-3-9/

Digging @ts-expect-error!

Test plan

Green CI

Comment thread .eslintrc.js
{argsIgnorePattern: '^_'},
],
'@typescript-eslint/prefer-ts-expect-error': 'error',
// Since we do `export =`. Remove for Jest 25
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅


const retryTimes = (numTestRetries: number) => {
// @ts-ignore: https://github.com/Microsoft/TypeScript/issues/24587
// @ts-expect-error: https://github.com/Microsoft/TypeScript/issues/24587
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue is closed now, maybe we don't need to ignore?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but if there’s no error, TypeScript will report that // @ts-expect-error wasn’t necessary

nevermind :D

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to link to another issue probably then, as @ts-expect-error will error if it doesn't suppress an error

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #10031 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10031   +/-   ##
=======================================
  Coverage   64.00%   64.00%           
=======================================
  Files         297      297           
  Lines       12528    12528           
  Branches     3093     3093           
=======================================
  Hits         8018     8018           
  Misses       3860     3860           
  Partials      650      650           
Impacted Files Coverage Δ
packages/babel-plugin-jest-hoist/src/index.ts 0.00% <ø> (ø)
packages/jest-cli/src/init/index.ts 84.78% <ø> (ø)
packages/jest-config/src/normalize.ts 76.66% <ø> (ø)
...ges/jest-config/src/readConfigFileAndSetRootDir.ts 0.00% <ø> (ø)
packages/jest-core/src/watch.ts 78.53% <ø> (ø)
packages/jest-fake-timers/src/legacyFakeTimers.ts 90.35% <ø> (ø)
packages/jest-fake-timers/src/modernFakeTimers.ts 69.76% <ø> (ø)
packages/jest-haste-map/src/index.ts 80.00% <ø> (ø)
packages/jest-haste-map/src/lib/FSEventsWatcher.ts 12.72% <ø> (ø)
packages/jest-jasmine2/src/errorOnPrivate.ts 0.00% <ø> (ø)
... and 26 more

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 0e0eeed...36b5c50. Read the comment docs.

@SimenB SimenB merged commit 9ffd368 into jestjs:master May 13, 2020
@SimenB SimenB deleted the ts-3.9 branch May 13, 2020 11:01
jeysal added a commit to jeysal/jest that referenced this pull request May 25, 2020
…esolve-outside

* upstream/master: (106 commits)
  docs: fix jest-diff example (jestjs#10067)
  Cleanup `displayName` type (jestjs#10049)
  docs: correct confusing filename in `enableAutomock` example (jestjs#10055)
  chore: minor optimize getTransformer (jestjs#10050)
  chore: fix TestUtils.ts to match the types (jestjs#10034)
  Minor test name typo fix (jestjs#10033)
  chore: upgrade to typescript 3.9 (jestjs#10031)
  feat: CLI argument to filter tests by projects (jestjs#8612)
  chore: bump `istanbul-lib-instrument` (jestjs#10009)
  feat: support config files exporting (`async`) `function`s (jestjs#10001)
  fix: add missing haste-map dep to jest-snapshot (jestjs#10008)
  🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (jestjs#10000)
  Fix typo in dependency warning (jestjs#10006)
  chore: add missing comma (jestjs#9999)
  fix: Control no diff message color with diff options (jestjs#9997)
  fix(jest-jasmine2): fix Error message (jestjs#9990)
  docs: fix jest-object ids for docusaurs (jestjs#9994)
  docs: fix Configuration, JestPlatform and JestObjectAPI docs for 26 (jestjs#9985)
  Add migration notes for breaking changes (jestjs#9978)
  chore: fix date and heading in blog post (jestjs#9977)
  ...
@github-actions
Copy link
Copy Markdown

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.

4 participants