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: update min ts version of jest & co to 3.8 to allow bumping dependencies #48473

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Oct 4, 2020

This is required in order to eventually switch to sourcing types from jest directly (#44365), and also to allow us to update our dependency ranges for @types/jest to pull in the right version - right now we're pulling in v24 packages, which in addition to being the wrong type means dependency trees tend to have some huge duplication as @types comes before jest (so package managers tend to put the v24 packages at the top level).

After this is merged, the minimal TS version supported by @types/jest & packages that reference @types/jest will need to be updated whenever jest ups their min TS version.

While this could be pretty breaking for some, we can't really avoid it as TS 3.8 doesn't become the min for DT until 2022 by which time jest might have a min version of TS 5 or something, so we'll be back in the exact same spot.

This pain should be once-off since afterwards we'll just be matching the min version as directed by jest.

Also:

  • if you're using < jest 26 then you shouldn't be using @types/jest@26 so you wouldn't be affected
  • if you're using >= jest 26 then you're currently consuming some jest 24 types, which is wrong anyway, so the act of upgrading the dependencies in theory would cause breakages
  • if you can't upgrade typescript then you can stay on the current version of the types you're using - while not ideal, typescript will need to be updated at some point anyway and we can only do so much in DT land

See #45603, #47545, #48426, and maybe a few other PRs & issues.

Creating as a draft initially as I expect this to go somewhat horribly wrong for the first few CI runs 😬

@typescript-bot typescript-bot added this to Needs Author Action in New Pull Request Status Board Oct 4, 2020
@G-Rath
Copy link
Contributor Author

G-Rath commented Oct 4, 2020

I just found #43613 where we do the same bumping of TS 🤦😂

So I think this is definitely the way to go.

@G-Rath G-Rath force-pushed the jest-update-ts-min-and-dependencies branch from b6a70f7 to 68b52e1 Compare October 4, 2020 01:23
@@ -3,7 +3,7 @@
// Definitions by: Christopher E. Woodland <https://github.com/cwoodland>
// Johnny Li <https://github.com/johnny4753>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
// TypeScript Version: 3.8

/// <reference types='jest'/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't actually think this is needed - I can't find any evidence of @types/jest being used in this file, but will look into it further once I've got CI green.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that the original reference was to jasmine, and was because it was argumenting the global jasmine namespace.

However, while v2 of @types/frisby removed this argumenting, the reference was kept in because the author wanted to have @types/jasmine pulled in because the library used jasmine?

I can understand why, and am not against it, but I think it would be better to remove this reference since frisby.js doesn't list jest as a dependency (not even as a peerDependency) nor does it require/import it anywhere, and because people using TypeScript will need to install @types/jest anyway as they'll be consuming them directly.

Additionally, the source code of frisby still references jasmine rather than jest, and was originally switched to jest as the jasmine types were causing problems (#32191).

@cwoodland @johnny4753 thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've made #48935 to remove the reference.

@danger-public
Copy link

Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files.
The check for missing properties isn't always right, so take this list as advice, not a requirement.

frisby (unpkg)

was missing the following properties:

  1. delete

jest-image-snapshot (unpkg)

was missing the following properties:

  1. updateSnapshotState

jest-json-schema (unpkg)

was missing the following properties:

  1. matchersWithFormats

jest-when (unpkg)

was missing the following properties:

  1. WhenMock

Generated by 🚫 dangerJS against 68b52e1

@G-Rath G-Rath marked this pull request as ready for review October 4, 2020 01:35
@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Review in New Pull Request Status Board Oct 4, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 4, 2020

@G-Rath Thank you for submitting this PR!

This is a live comment which I will keep updated.

15 packages in this PR

Code Reviews

This PR can be merged once it's reviewed.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ An owner or a DT maintainer needs to approve changes which affect more than one package

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 48473,
  "author": "G-Rath",
  "owners": [
    "JoshuaKGoldberg",
    "tkrotoff",
    "jfm710",
    "cwoodland",
    "johnny4753",
    "octogonz",
    "iclanton",
    "erbridge",
    "mike-d-davydov",
    "saitonakamura",
    "dawnmist",
    "peterblazejewicz",
    "geovanisouza92",
    "deadNightTiger",
    "lvl99",
    "joemitchard",
    "jonasheinrich",
    "aldentaylor",
    "immanuel192",
    "gstamac",
    "sehsyha",
    "NoHomey",
    "jwbay",
    "asvetliakov",
    "alexjoverm",
    "epicallan",
    "ikatyang",
    "wsmd",
    "JamieMason",
    "douglasduteil",
    "ahnpnl",
    "joshuakgoldberg",
    "UselessPickles",
    "r3nya",
    "hotell",
    "sebald",
    "andys8",
    "antoinebrault",
    "ExE-Boss",
    "quassnoi",
    "Belco90",
    "tonyhallett",
    "ycmjason",
    "devanshj",
    "pawfa",
    "regevbr",
    "gnapse",
    "jgoz",
    "smacpherson64",
    "mistic100"
  ],
  "dangerLevel": "MultiplePackagesEdited",
  "headCommitAbbrOid": "68b52e1",
  "headCommitOid": "68b52e14810df2587af9a101fa3f67b6f399b0ed",
  "mergeIsRequested": true,
  "stalenessInDays": 0,
  "lastPushDate": "2020-10-04T01:23:12.000Z",
  "reopenedDate": "2020-10-04T01:35:52.000Z",
  "lastCommentDate": "2020-10-20T06:53:50.000Z",
  "maintainerBlessed": true,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48473/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Critical",
  "newPackages": [],
  "packages": [
    "expect-puppeteer",
    "frisby",
    "heft-jest",
    "jest-axe",
    "jest-expect-message",
    "jest-image-snapshot",
    "jest-in-case",
    "jest-json-schema",
    "jest-matcher-one-of",
    "jest-plugin-context",
    "jest-specific-snapshot",
    "jest-when",
    "jest",
    "testing-library__jest-dom",
    "wordpress__jest-console"
  ],
  "files": [
    {
      "path": "types/expect-puppeteer/index.d.ts",
      "kind": "definition",
      "package": "expect-puppeteer"
    },
    {
      "path": "types/frisby/index.d.ts",
      "kind": "definition",
      "package": "frisby"
    },
    {
      "path": "types/heft-jest/index.d.ts",
      "kind": "definition",
      "package": "heft-jest"
    },
    {
      "path": "types/jest-axe/index.d.ts",
      "kind": "definition",
      "package": "jest-axe"
    },
    {
      "path": "types/jest-expect-message/index.d.ts",
      "kind": "definition",
      "package": "jest-expect-message"
    },
    {
      "path": "types/jest-image-snapshot/index.d.ts",
      "kind": "definition",
      "package": "jest-image-snapshot"
    },
    {
      "path": "types/jest-image-snapshot/v2/index.d.ts",
      "kind": "definition",
      "package": "jest-image-snapshot"
    },
    {
      "path": "types/jest-in-case/index.d.ts",
      "kind": "definition",
      "package": "jest-in-case"
    },
    {
      "path": "types/jest-json-schema/index.d.ts",
      "kind": "definition",
      "package": "jest-json-schema"
    },
    {
      "path": "types/jest-matcher-one-of/index.d.ts",
      "kind": "definition",
      "package": "jest-matcher-one-of"
    },
    {
      "path": "types/jest-plugin-context/index.d.ts",
      "kind": "definition",
      "package": "jest-plugin-context"
    },
    {
      "path": "types/jest-specific-snapshot/index.d.ts",
      "kind": "definition",
      "package": "jest-specific-snapshot"
    },
    {
      "path": "types/jest-when/index.d.ts",
      "kind": "definition",
      "package": "jest-when"
    },
    {
      "path": "types/jest/index.d.ts",
      "kind": "definition",
      "package": "jest"
    },
    {
      "path": "types/jest/package.json",
      "kind": "package-meta-ok",
      "package": "jest"
    },
    {
      "path": "types/testing-library__jest-dom/index.d.ts",
      "kind": "definition",
      "package": "testing-library__jest-dom"
    },
    {
      "path": "types/wordpress__jest-console/index.d.ts",
      "kind": "definition",
      "package": "wordpress__jest-console"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-10-04T22:26:49.000Z",
  "firstApprovalDate": "2020-10-04T04:57:06.000Z",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 2,
  "isChangesRequested": false
}

@G-Rath
Copy link
Contributor Author

G-Rath commented Oct 4, 2020

/cc @SimenB

@@ -3,7 +3,7 @@
// Definitions by: Pete Gonzalez <https://github.com/octogonz>
// Ian Clanton-Thuon <https://github.com/iclanton>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
// TypeScript Version: 3.8
Copy link
Contributor

Choose a reason for hiding this comment

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

Heft currently ships with Jest 25. Seems like this change should wait until Heft upgrades its Jest dependency.

Copy link
Contributor Author

@G-Rath G-Rath Oct 4, 2020

Choose a reason for hiding this comment

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

Any idea of when that might be?

I don't think this'll be a problem so long as Heft can support TypeScript 3.8, which by the looks of it it can.

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

expect-puppeteer/v*

Comparison details for expect-puppeteer/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 113.8 115.2 +1.2%
Type count 19038 19038 0%
Assignability cache size 5301 5301 0%
Language service
Samples taken 147 147 0%
Identifiers in tests 147 147 0%
getCompletionsAtPosition
    Mean duration (ms) 603.1 600.4 -0.4%
    Mean CV 8.9% 9.4%
    Worst duration (ms) 745.9 735.3 -1.4%
    Worst identifier expect instance
getQuickInfoAtPosition
    Mean duration (ms) 606.8 602.3 -0.8%
    Mean CV 9.0% 9.9% +10.0%
    Worst duration (ms) 728.0 731.4 +0.5%
    Worst identifier instance instance

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

frisby/v*

Comparison details for frisby/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 108.2 107.1 -1.0%
Type count 18602 18602 0%
Assignability cache size 5281 5281 0%
Language service
Samples taken 27 27 0%
Identifiers in tests 27 27 0%
getCompletionsAtPosition
    Mean duration (ms) 614.6 614.1 -0.1%
    Mean CV 9.1% 10.6%
    Worst duration (ms) 671.2 687.4 +2.4%
    Worst identifier done expect
getQuickInfoAtPosition
    Mean duration (ms) 605.2 597.5 -1.3%
    Mean CV 10.1% 10.1% -0.3%
    Worst duration (ms) 680.9 661.2 -2.9%
    Worst identifier done globalSetup

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

heft-jest/v*

Comparison details for heft-jest/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 43.2 43.0 -0.4%
Type count 3610 3610 0%
Assignability cache size 408 408 0%
Language service
Samples taken 11 11 0%
Identifiers in tests 11 11 0%
getCompletionsAtPosition
    Mean duration (ms) 106.0 104.7 -1.2%
    Mean CV 19.3% 20.4%
    Worst duration (ms) 126.6 123.1 -2.8%
    Worst identifier instances instances
getQuickInfoAtPosition
    Mean duration (ms) 99.3 102.7 +3.4%
    Mean CV 20.6% 20.3% -1.2%
    Worst duration (ms) 110.0 120.7 +9.7%
    Worst identifier instances mocked

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-axe/v*

Comparison details for jest-axe/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 83.2 74.7 -10.3%
Type count 11571 11571 0%
Assignability cache size 3723 3723 0%
Language service
Samples taken 54 54 0%
Identifiers in tests 54 54 0%
getCompletionsAtPosition
    Mean duration (ms) 350.4 380.9 +8.7%
    Mean CV 11.1% 12.8%
    Worst duration (ms) 421.8 438.9 +4.0%
    Worst identifier configureAxe selectors
getQuickInfoAtPosition
    Mean duration (ms) 347.4 372.7 +7.3%
    Mean CV 11.6% 11.3% -2.9%
    Worst duration (ms) 410.2 432.6 +5.5%
    Worst identifier JestAxe newJestWithOptions

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-expect-message/v*

Comparison details for jest-expect-message/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 40.7 39.5 -2.9%
Type count 3231 3231 0%
Assignability cache size 343 343 0%
Language service
Samples taken 5 5 0%
Identifiers in tests 5 5 0%
getCompletionsAtPosition
    Mean duration (ms) 115.1 118.3 +2.8%
    Mean CV 22.2% 22.9%
    Worst duration (ms) 139.8 143.1 +2.3%
    Worst identifier toBe toBe
getQuickInfoAtPosition
    Mean duration (ms) 108.0 111.4 +3.1%
    Mean CV 22.6% 24.3% +7.4%
    Worst duration (ms) 123.0 118.7 -3.5%
    Worst identifier toBe toBe

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-image-snapshot/v*

Comparison details for jest-image-snapshot/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 112.7 113.9 +1.1%
Type count 18221 18221 0%
Assignability cache size 5231 5231 0%
Language service
Samples taken 58 58 0%
Identifiers in tests 58 58 0%
getCompletionsAtPosition
    Mean duration (ms) 596.8 590.3 -1.1%
    Mean CV 11.7% 11.0%
    Worst duration (ms) 709.9 671.4 -5.4%
    Worst identifier failureThresholdType failureThreshold
getQuickInfoAtPosition
    Mean duration (ms) 589.7 584.4 -0.9%
    Mean CV 9.9% 9.3% -6.4%
    Worst duration (ms) 678.1 738.6 +8.9%
    Worst identifier expect failureThresholdType

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-image-snapshot/v*

Comparison details for jest-image-snapshot/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 112.8 113.8 +0.9%
Type count 18221 18221 0%
Assignability cache size 5231 5231 0%
Language service
Samples taken 58 58 0%
Identifiers in tests 58 58 0%
getCompletionsAtPosition
    Mean duration (ms) 586.2 599.5 +2.3%
    Mean CV 10.5% 10.3%
    Worst duration (ms) 686.2 749.7 +9.3%
    Worst identifier failureThreshold failureThresholdType
getQuickInfoAtPosition
    Mean duration (ms) 586.7 591.7 +0.9%
    Mean CV 10.2% 9.2% -10.2%
    Worst duration (ms) 689.4 704.8 +2.2%
    Worst identifier failureThreshold failureThresholdType

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-in-case/v*

Comparison details for jest-in-case/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 69.9 70.7 +1.1%
Type count 10334 10334 0%
Assignability cache size 1919 1919 0%
Language service
Samples taken 321 321 0%
Identifiers in tests 321 321 0%
getCompletionsAtPosition
    Mean duration (ms) 316.6 315.8 -0.2%
    Mean CV 9.8% 9.7%
    Worst duration (ms) 394.4 386.7 -1.9%
    Worst identifier toBe global
getQuickInfoAtPosition
    Mean duration (ms) 315.4 316.6 +0.4%
    Mean CV 10.1% 10.0% -1.2%
    Worst duration (ms) 373.6 404.4 +8.2%
    Worst identifier expect mockImplementation

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-json-schema/v*

Comparison details for jest-json-schema/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 43.3 43.2 -0.3%
Type count 3425 3425 0%
Assignability cache size 368 368 0%
Language service
Samples taken 35 35 0%
Identifiers in tests 35 35 0%
getCompletionsAtPosition
    Mean duration (ms) 108.5 105.4 -2.8%
    Mean CV 25.7% 24.5%
    Worst duration (ms) 137.9 128.5 -6.9%
    Worst identifier toMatchSchema it
getQuickInfoAtPosition
    Mean duration (ms) 104.4 102.5 -1.8%
    Mean CV 22.3% 26.5% +19.1%
    Worst duration (ms) 117.0 119.9 +2.5%
    Worst identifier toBeValidSchema toBeValidSchema

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-matcher-one-of/v*

Comparison details for jest-matcher-one-of/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 40.5 40.5 -0.1%
Type count 3227 3227 0%
Assignability cache size 344 344 0%
Language service
Samples taken 2 2 0%
Identifiers in tests 2 2 0%
getCompletionsAtPosition
    Mean duration (ms) 138.4 138.6 +0.2%
    Mean CV 28.7% 30.7%
    Worst duration (ms) 145.7 139.3 -4.4%
    Worst identifier toBeOneOf expect
getQuickInfoAtPosition
    Mean duration (ms) 134.6 126.5 -6.0%
    Mean CV 23.1% 27.3% +17.9%
    Worst duration (ms) 141.5 127.9 -9.6%
    Worst identifier expect toBeOneOf

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-plugin-context/v*

Comparison details for jest-plugin-context/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 84.9 84.5 -0.5%
Type count 11367 11367 0%
Assignability cache size 3708 3708 0%
Language service
Samples taken 1 1 0%
Identifiers in tests 1 1 0%
getCompletionsAtPosition
    Mean duration (ms) 454.1 466.9 +2.8%
    Mean CV 24.2% 22.3%
    Worst duration (ms) 454.1 466.9 +2.8%
    Worst identifier context context
getQuickInfoAtPosition
    Mean duration (ms) 381.1 361.7 -5.1%
    Mean CV 13.8% 14.2% +2.5%
    Worst duration (ms) 381.1 361.7 -5.1%
    Worst identifier context context

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-specific-snapshot/v*

Comparison details for jest-specific-snapshot/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 116.0 116.8 +0.7%
Type count 25636 25636 0%
Assignability cache size 4480 4480 0%
Language service
Samples taken 22 22 0%
Identifiers in tests 22 22 0%
getCompletionsAtPosition
    Mean duration (ms) 508.5 502.1 -1.3%
    Mean CV 11.0% 11.4%
    Worst duration (ms) 560.5 598.7 +6.8%
    Worst identifier toMatchSpecificSnapshot toJson
getQuickInfoAtPosition
    Mean duration (ms) 506.5 495.0 -2.3%
    Mean CV 8.9% 10.0% +13.0%
    Worst duration (ms) 562.4 550.6 -2.1%
    Worst identifier snapshotFile doSomeThing

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest-when/v*

Comparison details for jest-when/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 43.4 44.5 +2.7%
Type count 3552 3552 0%
Assignability cache size 430 430 0%
Language service
Samples taken 269 269 0%
Identifiers in tests 269 269 0%
getCompletionsAtPosition
    Mean duration (ms) 90.8 92.5 +1.9%
    Mean CV 15.0% 14.0%
    Worst duration (ms) 122.1 129.3 +5.9%
    Worst identifier mockReturnValue toThrow
getQuickInfoAtPosition
    Mean duration (ms) 89.3 92.3 +3.3%
    Mean CV 14.7% 14.9% +1.5%
    Worst duration (ms) 120.3 122.0 +1.4%
    Worst identifier when mockReturnValue

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

jest/v*

Comparison details for jest/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 89.6 89.8 +0.2%
Type count 15505 15505 0%
Assignability cache size 4857 4857 0%
Language service
Samples taken 2612 2612 0%
Identifiers in tests 2612 2612 0%
getCompletionsAtPosition
    Mean duration (ms) 380.1 378.9 -0.3%
    Mean CV 7.8% 8.0%
    Worst duration (ms) 505.5 523.0 +3.5%
    Worst identifier toBe xit
getQuickInfoAtPosition
    Mean duration (ms) 378.8 377.5 -0.4%
    Mean CV 7.8% 7.7% -1.3%
    Worst duration (ms) 514.6 538.0 +4.5%
    Worst identifier expect type

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

testing-library__jest-dom/v*

Comparison details for testing-library__jest-dom/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 74.8 75.4 +0.9%
Type count 11518 11518 0%
Assignability cache size 3721 3721 0%
Language service
Samples taken 312 312 0%
Identifiers in tests 312 312 0%
getCompletionsAtPosition
    Mean duration (ms) 344.7 340.9 -1.1%
    Mean CV 9.4% 9.6%
    Worst duration (ms) 445.6 398.8 -10.5%
    Worst identifier toBeInTheDocument toHaveAttribute
getQuickInfoAtPosition
    Mean duration (ms) 336.6 332.3 -1.3%
    Mean CV 9.8% 9.6% -2.0%
    Worst duration (ms) 418.4 411.2 -1.7%
    Worst identifier not expect

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

wordpress__jest-console/v*

Comparison details for wordpress__jest-console/* 📊
master #48473 diff
Batch compilation
Memory usage (MiB) 72.4 82.7 +14.3%
Type count 11392 11392 0%
Assignability cache size 3709 3709 0%
Language service
Samples taken 25 25 0%
Identifiers in tests 25 25 0%
getCompletionsAtPosition
    Mean duration (ms) 341.7 359.7 +5.3%
    Mean CV 10.0% 10.6%
    Worst duration (ms) 394.7 403.9 +2.3%
    Worst identifier toHaveWarnedWith toHaveLoggedWith
getQuickInfoAtPosition
    Mean duration (ms) 331.4 343.1 +3.5%
    Mean CV 9.2% 8.4% -8.9%
    Worst duration (ms) 410.5 383.1 -6.7%
    Worst identifier toHaveWarnedWith expect

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Oct 4, 2020
Copy link
Contributor

@jwbay jwbay left a comment

Choose a reason for hiding this comment

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

TS 4.1 beta is out, so the unofficial DT rule of "don't set the minimum to later than two versions ago" seems met here.

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Oct 4, 2020
@@ -28,6 +28,7 @@
// Pawel Fajfer <https://github.com/pawfa>
// Regev Brody <https://github.com/regevbr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.8
Copy link
Contributor

@ExE-Boss ExE-Boss Oct 4, 2020

Choose a reason for hiding this comment

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

For the sake of consistency, this should be:

Suggested change
// Minimum TypeScript Version: 3.8
// TypeScript Version: 3.8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See, I'd prefer that for consistency, but the readme says it should have that word 🤔

@orta
Copy link
Collaborator

orta commented Oct 16, 2020

So as a conceptual change, I get where this PR is going (and making it feasible so the module jest be the source of types is a 👍🏻 )

I think we need a @SimenB (or other Jest team member) sign-off for it because the TS minimum version change is gonna break a few builds ;)

@SimenB
Copy link
Contributor

SimenB commented Oct 16, 2020

Sign-off on what? The change itself seems correct to me - it should have happened when @types/jest was bumped to v26 as that's the minimal version supported by Jest itself.

Are you asking for some guarantee the TS version will remain stable in the future? If so I can say that Jest 26 will keep 3.8 as minimum (we verify compatibility on CI). No current plans to bump that minimum in the next major (although I really want labeled tuples, I don't think it's worth the downstream breakage).

Regarding breakage of consumers of this package - maybe wait for Jest 27? That's still months away, so might not be worth it, dunno. Your call 👍

@elibarzilay elibarzilay moved this from Needs Maintainer Review to Waiting for Code Reviews in New Pull Request Status Board Oct 20, 2020
@typescript-bot typescript-bot added the Self Merge This PR can now be self-merged by the PR author or an owner label Oct 20, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Waiting for Author to Merge in New Pull Request Status Board Oct 20, 2020
@G-Rath
Copy link
Contributor Author

G-Rath commented Oct 20, 2020

I agree with @SimenB re this should have been done for Jest 26, so if things break they break. @types/jest has been pretty stable now anyway and there's always patch-package 🤷

@G-Rath
Copy link
Contributor Author

G-Rath commented Oct 20, 2020

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Oct 20, 2020
@typescript-bot typescript-bot merged commit a4a35ec into DefinitelyTyped:master Oct 20, 2020
@G-Rath G-Rath deleted the jest-update-ts-min-and-dependencies branch October 20, 2020 06:54
@G-Rath
Copy link
Contributor Author

G-Rath commented Oct 20, 2020

@orta @elibarzilay have I broken the bot, or is it just a slow day..? 🤔

(maybe some sort of status comment could be useful, saying "I've got this queued for publishing"?)

@typescript-bot
Copy link
Contributor

I just published @types/expect-puppeteer@4.4.4 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/frisby@2.0.8 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/heft-jest@1.0.2 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest@26.0.15 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-axe@3.5.1 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-expect-message@1.0.3 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-image-snapshot@4.1.2 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-image-snapshot@2.12.2 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-in-case@1.0.3 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-json-schema@2.1.3 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-matcher-one-of@1.0.3 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-plugin-context@2.9.4 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-specific-snapshot@0.5.5 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/jest-when@2.7.2 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/testing-library__jest-dom@5.9.5 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/wordpress__jest-console@3.0.4 to npm.

@G-Rath
Copy link
Contributor Author

G-Rath commented Oct 20, 2020

731 -> 696 packages 🎉

(since I'm no longer duplicating jest-diff, jest-get-type,@jest/types, diff-sequence, pretty-format, and a bunch of others, literally 30 times or more)

@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Edits multiple packages Owner Approved A listed owner of this package signed off on the pull request. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Self Merge This PR can now be self-merged by the PR author or an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants