[testing-library] create @testing-library/* definitions#37606
[testing-library] create @testing-library/* definitions#37606johnnyreilly merged 7 commits intoDefinitelyTyped:masterfrom
Conversation
|
@alexkrolick Thank you for submitting this PR! Because this is a new definition, a DefinitelyTyped maintainer will be reviewing this PR in the next few days once the Travis CI build passes. In the meantime, if the build fails or a merge conflict occurs, I'll let you know. Have a nice day! |
|
@alexkrolick The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
* fix(lint): Fix lint issues for `@testing-library/dom` * fix(lint): Fix lint issues in `@testing-library/react` * chore(format): Format `@testing-library/react` * chore(format): Format `@testing-library/dom` * chore: Add `@eps1lon` as collaborator
|
👋 Hi there! I’ve run some quick performance metrics against master and your PR. This is still an experiment, so don’t panic if I say something crazy! I’m still learning how to interpret these metrics. Let’s review the numbers, shall we? testing-library__dom/v6These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__dom with its source on master. Comparison details for testing-library__dom/v6 📊
testing-library__react/v9These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__react with its source on master. Comparison details for testing-library__react/v9 📊
If you have any questions or comments about me, you can ping |
|
@alexkrolick The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
Updated numbers for you here from 28f6ff8: testing-library__dom/v6These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__dom with its source on master. Comparison details for testing-library__dom/v6 📊
testing-library__react/v9These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__react with its source on master. Comparison details for testing-library__react/v9 📊
|
|
@alexkrolick The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
Updated numbers for you here from 0c9a05f: testing-library__dom/v6These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__dom with its source on master. Comparison details for testing-library__dom/v6 📊
testing-library__react/v9These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__react with its source on master. Comparison details for testing-library__react/v9 📊
|
|
This PR is marked as draft - is it ready for review? Also @weyert did you want to add your name to the header so you get notifications about this package? |
* chore: Added my name * chore: Added me * chore: Hooks * chore: Hooks * Update index.d.ts
|
@johnnyreilly looks like we are ready for the review! |
|
Updated numbers for you here from 5e806bc: testing-library__dom/v6These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__dom with its source on master. Comparison details for testing-library__dom/v6 📊
testing-library__react/v9These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__react with its source on master. Comparison details for testing-library__react/v9 📊
testing-library__user-event/v4Comparison details for testing-library__user-event/v4 📊
It looks like there are several metrics that changed quite a bit. You might want to take a look and make sure your changes won’t cause slow-downs for users consuming these types. |
|
Lovely! |
|
Let's wait until the discussion here has concluded before merging: testing-library/react-testing-library#437 (comment) |
|
Updated numbers for you here from 13cd847: testing-library__dom/v7These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__dom with its source on master. Comparison details for testing-library__dom/v7 📊
testing-library__react/v10These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__react with its source on master. Comparison details for testing-library__react/v10 📊
testing-library__user-event/v4Comparison details for testing-library__user-event/v4 📊
Looks like there were a couple significant differences—take a look at worst-case duration for getting quick info at a position to make sure everything looks ok. |
|
@alexkrolick The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
Ha! It turns out that whilst TypeScript doesn't care about version numbers of packages, the definitely typed tooling does. We'll have to do this in 2 stages (each with a different version number) for a smooth transition. Sorry for time waste there - didn't know definitely typed was doing those checks. |
|
John, I will have a look when I am in the office :) @johnnyreilly If you run lint locally it didn't complain about it. |
|
Can we revert the version number change of the last commit please? Then we can merge. |
|
Yes, I will work on that in a bit once the build at work is working again 😇 |
This reverts commit 04b992e.
|
reverted the version bump |
|
Updated numbers for you here from 9a77725: testing-library__dom/v6These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__dom with its source on master. Comparison details for testing-library__dom/v6 📊
testing-library__react/v9These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to testing-library__react with its source on master. Comparison details for testing-library__react/v9 📊
testing-library__user-event/v4Comparison details for testing-library__user-event/v4 📊
It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place. |
|
Great - merged. Automation should publish this sometime tonight I think |
Please fill in this template.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
If adding a new definition:
.d.tsfiles generated via--declarationdts-gen --dt, not by basing it on an existing project.tslint.jsonshould be present, andtsconfig.jsonshould havenoImplicitAny,noImplicitThis,strictNullChecks, andstrictFunctionTypesset totrue.