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]: add type reference to jest-diff #33030
Conversation
@SimenB Thank you for submitting this PR! 🔔 @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @JoshuaKGoldberg @UselessPickles @r3nya @Hotell @sebald @andys8 - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
Is there some way to preview the generated |
@SimenB try generate package using https://github.com/Microsoft/types-publisher |
cat data/definitions.json | jq '.jest."24"' Click to expand{
"libraryName": "Jest",
"typingsPackageName": "jest",
"projectName": "http://facebook.github.io/jest/",
"contributors": [
{
"name": "Asana",
"url": "https://asana.com"
},
{
"name": "Ivo Stratev",
"url": "https://github.com/NoHomey",
"githubUsername": "NoHomey"
},
{
"name": "jwbay",
"url": "https://github.com/jwbay",
"githubUsername": "jwbay"
},
{
"name": "Alexey Svetliakov",
"url": "https://github.com/asvetliakov",
"githubUsername": "asvetliakov"
},
{
"name": "Alex Jover Morales",
"url": "https://github.com/alexjoverm",
"githubUsername": "alexjoverm"
},
{
"name": "Allan Lukwago",
"url": "https://github.com/epicallan",
"githubUsername": "epicallan"
},
{
"name": "Ika",
"url": "https://github.com/ikatyang",
"githubUsername": "ikatyang"
},
{
"name": "Waseem Dahman",
"url": "https://github.com/wsmd",
"githubUsername": "wsmd"
},
{
"name": "Jamie Mason",
"url": "https://github.com/JamieMason",
"githubUsername": "JamieMason"
},
{
"name": "Douglas Duteil",
"url": "https://github.com/douglasduteil",
"githubUsername": "douglasduteil"
},
{
"name": "Ahn",
"url": "https://github.com/ahnpnl",
"githubUsername": "ahnpnl"
},
{
"name": "Josh Goldberg",
"url": "https://github.com/joshuakgoldberg",
"githubUsername": "joshuakgoldberg"
},
{
"name": "Jeff Lau",
"url": "https://github.com/UselessPickles",
"githubUsername": "UselessPickles"
},
{
"name": "Andrew Makarov",
"url": "https://github.com/r3nya",
"githubUsername": "r3nya"
},
{
"name": "Martin Hochel",
"url": "https://github.com/hotell",
"githubUsername": "hotell"
},
{
"name": "Sebastian Sebald",
"url": "https://github.com/sebald",
"githubUsername": "sebald"
},
{
"name": "Andy",
"url": "https://github.com/andys8",
"githubUsername": "andys8"
},
{
"name": "Antoine Brault",
"url": "https://github.com/antoinebrault",
"githubUsername": "antoinebrault"
}
],
"libraryMajorVersion": 24,
"libraryMinorVersion": 0,
"minTsVersion": "3.0",
"typesVersions": [],
"files": [
"index.d.ts"
],
"license": "MIT",
"dependencies": [
{
"name": "jest-diff",
"majorVersion": "*"
}
],
"testDependencies": [],
"pathMappings": [],
"packageJsonDependencies": [],
"contentHash": "adb905c3644d1c270a0befec4f8b7705a41f2555b9597b7b25069067ce2ff3a9",
"globals": [
"afterAll",
"afterEach",
"beforeAll",
"beforeEach",
"describe",
"expect",
"fail",
"fdescribe",
"fit",
"it",
"jasmine",
"jest",
"pending",
"spyOn",
"test",
"xdescribe",
"xit",
"xtest"
],
"declaredModules": []
} |
@SimenB BTW, maybe it would be better to include typings in jest package itself rather than using DefinitelyTyped? |
Thanks! That's almost right - it should depend on
Working on it 😉 jestjs/jest#7807 |
@sandersn types-publisher has been pushing other packages but hasn't picked this one up yet. Is it stuck or am I just impatient? |
Oh types-publisher is hanging out at #32990 currently. It'll get here eventually I assume 😄 |
Yep, someday. It's on handlebar-helpers right now. |
I just published |
|
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).If changing an existing definition:
diff
to Jest's matcher utils #32891tslint.json
containing{ "extends": "dtslint/dt.json" }
.Is this enough to add the dependency?
It need to import
@types/jest-diff