Skip to content

Commit

Permalink
Export TestingLibraryMatchers from matchers-standalone.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 committed Jan 31, 2024
1 parent f302b16 commit 91bd0d9
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 3 deletions.
Binary file modified broken/.yarn/install-state.gz
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/types/matchers-standalone.d.ts b/types/matchers-standalone.d.ts
index b8dea836febd6b593cedc6303ad3f11e252cbef5..e6ec950fe4561e4f5c16ddd159c19160c537a1eb 100644
--- a/types/matchers-standalone.d.ts
+++ b/types/matchers-standalone.d.ts
@@ -1,6 +1,6 @@
-import {type TestingLibraryMatchers} from './matchers'
+import {type TestingLibraryMatchers as _TLM} from './matchers'

-type TLM = TestingLibraryMatchers<any, void>
+type TLM = _TLM<any, void>

interface MatcherReturnType {
pass: boolean
@@ -23,6 +23,8 @@ declare namespace matchersStandalone {
...rest: Parameters<TLM[T]>
) => MatcherReturnType
} & OverloadedMatchers
+
+ type TestingLibraryMatchers<E, R> = _TLM<E, R>
}

declare const matchersStandalone: matchersStandalone.MatchersStandalone &
2 changes: 1 addition & 1 deletion broken/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"packageManager": "yarn@4.1.0",
"dependencies": {
"@testing-library/jest-dom": "^6.4.0",
"@testing-library/jest-dom": "patch:@testing-library/jest-dom@npm%3A6.4.0#~/.yarn/patches/@testing-library-jest-dom-npm-6.4.0-5ec45e6af1.patch",
"expect": "^29.7.0",
"typescript": "^5.3.3"
}
Expand Down
37 changes: 35 additions & 2 deletions broken/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-dom@npm:^6.4.0":
"@testing-library/jest-dom@npm:6.4.0":
version: 6.4.0
resolution: "@testing-library/jest-dom@npm:6.4.0"
dependencies:
Expand Down Expand Up @@ -121,6 +121,39 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-dom@patch:@testing-library/jest-dom@npm%3A6.4.0#~/.yarn/patches/@testing-library-jest-dom-npm-6.4.0-5ec45e6af1.patch":
version: 6.4.0
resolution: "@testing-library/jest-dom@patch:@testing-library/jest-dom@npm%3A6.4.0#~/.yarn/patches/@testing-library-jest-dom-npm-6.4.0-5ec45e6af1.patch::version=6.4.0&hash=f45b6f"
dependencies:
"@adobe/css-tools": "npm:^4.3.2"
"@babel/runtime": "npm:^7.9.2"
aria-query: "npm:^5.0.0"
chalk: "npm:^3.0.0"
css.escape: "npm:^1.5.1"
dom-accessibility-api: "npm:^0.6.3"
lodash: "npm:^4.17.15"
redent: "npm:^3.0.0"
peerDependencies:
"@jest/globals": ">= 28"
"@types/bun": "*"
"@types/jest": ">= 28"
jest: ">= 28"
vitest: ">= 0.32"
peerDependenciesMeta:
"@jest/globals":
optional: true
"@types/bun":
optional: true
"@types/jest":
optional: true
jest:
optional: true
vitest:
optional: true
checksum: 10c0/af3344b2cfba4c38259904bee69922f95f697e2fcbd8525b7ced4837ce8ba8eabc6754113b6808bb49bffcf9bf21062539c1a9199c296a41edd12f45c5a5e6a2
languageName: node
linkType: hard

"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0":
version: 2.0.6
resolution: "@types/istanbul-lib-coverage@npm:2.0.6"
Expand Down Expand Up @@ -572,7 +605,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "testing-library-jest-dom-6.2.0-breaking-type-location@workspace:."
dependencies:
"@testing-library/jest-dom": "npm:^6.4.0"
"@testing-library/jest-dom": "patch:@testing-library/jest-dom@npm%3A6.4.0#~/.yarn/patches/@testing-library-jest-dom-npm-6.4.0-5ec45e6af1.patch"
expect: "npm:^29.7.0"
typescript: "npm:^5.3.3"
languageName: unknown
Expand Down
Binary file modified working/.yarn/install-state.gz
Binary file not shown.

0 comments on commit 91bd0d9

Please sign in to comment.