relay-test-utils 0.0.0-main-f123abe8 → 0.0.0-main-0414c9ad
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RelayResolverTestUtils.js.flow +3 -3
- package/index.js +1 -1
- package/package.json +2 -2
|
@@ -34,11 +34,11 @@ const {
|
|
|
34
34
|
* expect(actual).toEqual(expectedValue)
|
|
35
35
|
* ```
|
|
36
36
|
**/
|
|
37
|
-
function testResolver<D, Ret>(
|
|
38
|
-
resolver: ({$data
|
|
37
|
+
function testResolver<D: ?{+$fragmentType?: mixed, ...}, Ret>(
|
|
38
|
+
resolver: ({$data?: D, $fragmentRefs: any, $fragmentSpreads: any}) => Ret,
|
|
39
39
|
// indexed_access is not yet enabled for this code base. Once it is, this can
|
|
40
40
|
// become: `Key['$data']`
|
|
41
|
-
fragmentData:
|
|
41
|
+
fragmentData: NoInfer<Omit<$NonMaybeType<D>, '$fragmentType'>>,
|
|
42
42
|
): Ret {
|
|
43
43
|
const readFragment = ResolverFragments.readFragment;
|
|
44
44
|
// $FlowFixMe: a test utility, so... YOLO!!
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relay-test-utils",
|
|
3
3
|
"description": "Utilities for testing Relay applications.",
|
|
4
|
-
"version": "0.0.0-main-
|
|
4
|
+
"version": "0.0.0-main-0414c9ad",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
7
7
|
"relay"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@babel/runtime": "^7.25.0",
|
|
19
19
|
"fbjs": "^3.0.2",
|
|
20
20
|
"invariant": "^2.2.4",
|
|
21
|
-
"relay-runtime": "0.0.0-main-
|
|
21
|
+
"relay-runtime": "0.0.0-main-0414c9ad"
|
|
22
22
|
},
|
|
23
23
|
"directories": {
|
|
24
24
|
"": "./"
|