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
jest: Update comparison methods to support BigInt #44368
jest: Update comparison methods to support BigInt #44368
Conversation
@D4nte Thank you for submitting this PR! Code ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 44368,
"author": "D4nte",
"owners": [
"NoHomey",
"jwbay",
"asvetliakov",
"alexjoverm",
"epicallan",
"ikatyang",
"wsmd",
"JamieMason",
"douglasduteil",
"ahnpnl",
"joshuakgoldberg",
"UselessPickles",
"r3nya",
"hotell",
"sebald",
"andys8",
"antoinebrault",
"favna",
"gstamac",
"ExE-Boss",
"quassnoi",
"Belco90",
"tonyhallett",
"ycmjason",
"devanshj",
"pawfa",
"regevbr"
],
"dangerLevel": "ScopedAndConfiguration",
"headCommitAbbrOid": "bb1c089",
"headCommitOid": "bb1c089d8007f3989dd62f3a93bfce55bd82af0d",
"mergeIsRequested": false,
"stalenessInDays": 4,
"lastCommitDate": "2020-05-14T04:03:10.000Z",
"lastCommentDate": "2020-05-14T04:03:51.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44368/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Critical",
"anyPackageIsNew": false,
"packages": [
"jest"
],
"files": [
{
"filePath": "types/jest/package.json",
"kind": "package-meta",
"package": "jest"
},
{
"filePath": "types/jest/ts3.2/index.d.ts",
"kind": "definition",
"package": "jest"
},
{
"filePath": "types/jest/ts3.2/jest-tests.ts",
"kind": "test",
"package": "jest"
},
{
"filePath": "types/jest/ts3.2/tsconfig.json",
"kind": "package-meta",
"package": "jest"
},
{
"filePath": "types/jest/ts3.2/tslint.json",
"kind": "package-meta",
"package": "jest"
}
],
"hasDismissedReview": false,
"travisResult": "pass",
"lastReviewDate": "2020-05-16T18:55:32.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
👋 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? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
How can I see if any of the code maintainers have been notified? |
🔔 @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @JoshuaKGoldberg @UselessPickles @r3nya @Hotell @sebald @andys8 @antoinebrault @favna @gstamac @ExE-Boss @quassnoi @Belco90 @tonyhallett @ycmjason @devanshj @pawfa @regevbr - please review this PR in the next few days. Be sure to explicitly select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @D4nte!
dtslint is very particular on how the typesVersions
should be handled, hence the code duplication.
The code duplication isn't ideal since we would need to maintain 3 files at the same time moving forward (i.e. any change to be made in the future, we have to ensure that it's reflected in all copies).
Have you considered referencing the main types in the version-scoped files (as opposed to copying them) and adding only the specific overrides needed? It seems that how it's implemented in @types/node
(I see they're using // tslint:disable-next-line:no-bad-reference
in some places).
@D4nte One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. If you disagree with the reviewer's comments, you can "dismiss" the review using GitHub's review UI. Thank you! |
I tried but |
2558: Remove chai-bignumber r=mergify[bot] a=D4nte - Remove `chai-bignumber` dependency. - Removed chai usage from few files - Replace use of `BigNumber` with `bigint` ~Needs DefinitelyTyped/DefinitelyTyped#44368 to be merged and released~. Edit: using `@ts-ignore` for now. Helps with #2139. Co-authored-by: Franck Royer <franck@coblox.tech>
@wsmd Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
Yes, ready to go from my point of view. If not, please do mention what you'd like to see changed :) |
As per jestjs/jest#8382 TypeScript 3.2+ supports BigInt with esnext target. TypeScript 3.8+ supports it with es2020 target. dtslint is very particular on how the `typesVersions` should be handled, hence the code duplication.
cdfbf3a
to
bb1c089
Compare
@wsmd Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for doing this @D4nte!
I just published |
As per jestjs/jest#8382 TypeScript 3.2+ supports BigInt with esnext target. TypeScript 3.8+ supports it with es2020 target. dtslint is very particular on how the `typesVersions` should be handled, hence the code duplication.
As per jestjs/jest#8382 TypeScript 3.2+ supports BigInt with esnext target. TypeScript 3.8+ supports it with es2020 target. dtslint is very particular on how the `typesVersions` should be handled, hence the code duplication.
As per jestjs/jest#8382
TypeScript 3.2+ supports BigInt with esnext target.
TypeScript 3.8+ supports it with es2020 target.
dtslint is very particular on how the
typesVersions
should be handled, hence the code duplication.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).If changing an existing definition:
tslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.