joist-test-utils 1.289.0 → 1.289.1
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/build/toMatchEntity.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncProperty,
|
|
1
|
+
import { AsyncProperty, Entity, ReadOnlyCollection, Reference } from "joist-orm";
|
|
2
2
|
import { CustomMatcherResult } from "./index";
|
|
3
3
|
/**
|
|
4
4
|
* Provides convenient `toMatchObject`-style matching for Joist entities.
|
|
@@ -21,7 +21,7 @@ export declare function toMatchEntity<T>(this: any, actual: unknown, expected: M
|
|
|
21
21
|
* that are returned from GraphQL object resolvers.
|
|
22
22
|
*/
|
|
23
23
|
export type MatchedEntity<T> = T extends ReadonlyArray<infer U> ? ReadonlyArray<MatchedEntity<U>> : undefined | T | {
|
|
24
|
-
[K in keyof T]?: T[K] extends Reference<any, infer U, any> ? MatchedEntity<U> | U : T[K] extends
|
|
24
|
+
[K in keyof T]?: T[K] extends Reference<any, infer U, any> ? MatchedEntity<U> | U : T[K] extends ReadOnlyCollection<any, infer U> ? Array<MatchedEntity<U> | U> : T[K] extends AsyncProperty<any, infer V> ? V : T[K] extends Entity | null | undefined ? MatchedEntity<T[K]> | T[K] | null | undefined : T[K] extends ReadonlyArray<infer U | undefined> ? readonly (MatchedEntity<U> | U | undefined)[] : T[K] extends ReadonlyArray<infer U> | null ? readonly (MatchedEntity<U> | U | null)[] : // We recurse similar to a DeepPartial
|
|
25
25
|
MatchedEntity<T[K]> | null;
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=toMatchEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toMatchEntity.d.ts","sourceRoot":"","sources":["../src/toMatchEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,
|
|
1
|
+
{"version":3,"file":"toMatchEntity.d.ts","sourceRoot":"","sources":["../src/toMatchEntity.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E,GAC7C,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,GACxC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAExC,AADA,sCAAsC;IACtC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CACzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-test-utils",
|
|
3
|
-
"version": "1.289.
|
|
3
|
+
"version": "1.289.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"build"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"joist-orm": "1.289.
|
|
15
|
-
"joist-utils": "1.289.
|
|
14
|
+
"joist-orm": "1.289.1",
|
|
15
|
+
"joist-utils": "1.289.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@swc/core": "^1.13.20",
|