@quilted/react-testing
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -9,5 +9,5 @@ import type { Ref, ReactElement } from 'react'; | ||
export declare const HookRunner: <HookResult>(props: Props<HookResult> & { | ||
ref?: Ref<ImperativeApi<HookResult>> | undefined; | ||
ref?: Ref<ImperativeApi<HookResult>>; | ||
}) => ReactElement | null; | ||
export {}; | ||
//# sourceMappingURL=HookRunner.d.ts.map |
@@ -8,3 +8,3 @@ import { isNode } from '../environment.tsx'; | ||
export declare const environment: import("../environment.tsx").Environment<HTMLNodeExtensions>; | ||
declare const render: import("../environment.tsx").CustomRender<import("../types.ts").EmptyObject, import("../types.ts").EmptyObject, import("../types.ts").EmptyObject, HTMLNodeExtensions, false>, createRender: <RenderOptions extends import("../types.ts").PlainObject = import("../types.ts").EmptyObject, Context_1 extends import("../types.ts").PlainObject = import("../types.ts").EmptyObject, Actions extends import("../types.ts").PlainObject = import("../types.ts").EmptyObject, Async extends boolean = false>(options: import("../environment.tsx").CustomRenderOptions<RenderOptions, Context_1, Context_1, Actions, Actions, HTMLNodeExtensions, Async>) => import("../environment.tsx").CustomRender<RenderOptions, Context_1, Actions, HTMLNodeExtensions, Async>, rendered: Set<import("../types.ts").Root<any, any, any, HTMLNodeExtensions>>, destroyAll: () => void; | ||
declare const render: import("../environment.tsx").CustomRender<import("../types.ts").EmptyObject, import("../types.ts").EmptyObject, import("../types.ts").EmptyObject, HTMLNodeExtensions, false>, createRender: <RenderOptions extends import("../types.ts").PlainObject = import("../types.ts").EmptyObject, Context extends import("../types.ts").PlainObject = import("../types.ts").EmptyObject, Actions extends import("../types.ts").PlainObject = import("../types.ts").EmptyObject, Async extends boolean = false>(options: import("../environment.tsx").CustomRenderOptions<RenderOptions, Context, Context, Actions, Actions, HTMLNodeExtensions, Async>) => import("../environment.tsx").CustomRender<RenderOptions, Context, Actions, HTMLNodeExtensions, Async>, rendered: Set<import("../types.ts").Root<any, any, any, HTMLNodeExtensions>>, destroyAll: () => void; | ||
export { render, createRender, rendered, destroyAll }; | ||
@@ -11,0 +11,0 @@ type Create = Parameters<EnvironmentOptions<any, HTMLNodeExtensions>['update']>[1]; |
import type { CustomRender, CustomRenderResult, CustomRenderOptions, CustomRenderExtendOptions, HookRunner, Environment, EnvironmentOptions, ContextOption, RenderOption, ActionsOption } from '../environment.tsx'; | ||
export type { CustomRender, CustomRenderResult, CustomRenderOptions, CustomRenderExtendOptions, HookRunner, Environment, EnvironmentOptions, ContextOption, RenderOption, ActionsOption, }; | ||
export declare const environment: Environment<import("./react-dom.ts").EmptyObject>; | ||
declare const render: CustomRender<import("./react-dom.ts").EmptyObject, import("./react-dom.ts").EmptyObject, import("./react-dom.ts").EmptyObject, import("./react-dom.ts").EmptyObject, false>, createRender: <RenderOptions extends import("./react-dom.ts").PlainObject = import("./react-dom.ts").EmptyObject, Context_1 extends import("./react-dom.ts").PlainObject = import("./react-dom.ts").EmptyObject, Actions extends import("./react-dom.ts").PlainObject = import("./react-dom.ts").EmptyObject, Async extends boolean = false>(options: CustomRenderOptions<RenderOptions, Context_1, Context_1, Actions, Actions, import("./react-dom.ts").EmptyObject, Async>) => CustomRender<RenderOptions, Context_1, Actions, import("./react-dom.ts").EmptyObject, Async>, rendered: Set<import("../types.ts").Root<any, any, any, import("./react-dom.ts").EmptyObject>>, destroyAll: () => void; | ||
declare const render: CustomRender<import("./react-dom.ts").EmptyObject, import("./react-dom.ts").EmptyObject, import("./react-dom.ts").EmptyObject, import("./react-dom.ts").EmptyObject, false>, createRender: <RenderOptions extends import("./react-dom.ts").PlainObject = import("./react-dom.ts").EmptyObject, Context extends import("./react-dom.ts").PlainObject = import("./react-dom.ts").EmptyObject, Actions extends import("./react-dom.ts").PlainObject = import("./react-dom.ts").EmptyObject, Async extends boolean = false>(options: CustomRenderOptions<RenderOptions, Context, Context, Actions, Actions, import("./react-dom.ts").EmptyObject, Async>) => CustomRender<RenderOptions, Context, Actions, import("./react-dom.ts").EmptyObject, Async>, rendered: Set<import("../types.ts").Root<any, any, any, import("./react-dom.ts").EmptyObject>>, destroyAll: () => void; | ||
export { render, createRender, rendered, destroyAll }; | ||
//# sourceMappingURL=test-renderer.d.ts.map |
@@ -15,3 +15,3 @@ import type { ComponentType, ComponentPropsWithoutRef, HTMLAttributes, Context } from 'react'; | ||
type MaybeFunctionParameters<T> = T extends (...args: any[]) => any ? Parameters<T> : []; | ||
export interface RootApi<Props, Context extends PlainObject = EmptyObject, Actions extends PlainObject = EmptyObject> { | ||
export interface RootApi<Props, Context extends PlainObject = EmptyObject, Actions extends PlainObject = EmptyObject> extends Disposable { | ||
readonly context: Context; | ||
@@ -18,0 +18,0 @@ readonly actions: Actions; |
# @quilted/react-testing | ||
## 0.6.8 | ||
### Patch Changes | ||
- [`3e07e287`](https://github.com/lemonmade/quilt/commit/3e07e287a68f5ba1059564c44df5a0469ac02982) Thanks [@lemonmade](https://github.com/lemonmade)! - Add support for explicit resource management | ||
- [`ccf29286`](https://github.com/lemonmade/quilt/commit/ccf2928633719c38b30cd3712fe132c6bd5fd2a0) Thanks [@lemonmade](https://github.com/lemonmade)! - Upgrade Preact and signal dependencies | ||
## 0.6.7 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@quilted/react-testing", | ||
"type": "module", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"repository": { | ||
@@ -77,3 +77,3 @@ "type": "git", | ||
"expect": "^29.0.0", | ||
"preact": "^10.19.0", | ||
"preact": "^10.20.0", | ||
"react": "^18.2.0", | ||
@@ -84,3 +84,3 @@ "react-dom": "^18.2.0", | ||
"peerDependencies": { | ||
"preact": "^10.19.0", | ||
"preact": "^10.20.0", | ||
"react": "^18.0.0", | ||
@@ -87,0 +87,0 @@ "react-dom": "^18.0.0", |
@@ -15,4 +15,4 @@ import type { | ||
: U extends EmptyObject | ||
? T | ||
: T & U; | ||
? T | ||
: T & U; | ||
@@ -23,7 +23,7 @@ export type PropsFor<T extends string | ComponentType<any>> = T extends string | ||
: T extends ComponentType<any> | ||
? ComponentPropsWithoutRef<T> | ||
: HTMLAttributes<T> | ||
: T extends ComponentType<any> | ||
? ComponentPropsWithoutRef<T> | ||
: HTMLAttributes<T> | ||
: T extends ComponentType<any> | ||
? ComponentPropsWithoutRef<T> | ||
: never; | ||
: never; | ||
@@ -39,8 +39,8 @@ export type FunctionKeys<T> = { | ||
: T extends readonly (infer U)[] | ||
? readonly DeepPartial<U>[] | ||
: T extends PlainObject | ||
? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
} | ||
: T; | ||
? readonly DeepPartial<U>[] | ||
: T extends PlainObject | ||
? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
} | ||
: T; | ||
@@ -62,3 +62,3 @@ export type Predicate<Extensions extends PlainObject> = ( | ||
Actions extends PlainObject = EmptyObject, | ||
> { | ||
> extends Disposable { | ||
readonly context: Context; | ||
@@ -65,0 +65,0 @@ readonly actions: Actions; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
335236
110
4585