@fast-check/ava
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,10 @@ | ||
# 1.1.3 | ||
_Update funding section in package.json_ | ||
[[Code](https://github.com/dubzzz/fast-check/tree/ava%2Fv1.1.3)][[Diff](https://github.com/dubzzz/fast-check/compare/ava%2Fv1.1.2...ava%2Fv1.1.3)] | ||
## Fixes | ||
- ([PR#3473](https://github.com/dubzzz/fast-check/pull/3473)) Funding: Re-order links in funding section | ||
# 1.1.2 | ||
@@ -2,0 +11,0 @@ |
import test, { AfterFn, BeforeFn, ImplementationFn } from 'ava'; | ||
import * as fc from 'fast-check'; | ||
export { fc, test }; | ||
declare type NonEmptyArray<A> = A[] & { | ||
type NonEmptyArray<A> = A[] & { | ||
0: A; | ||
}; | ||
declare type ArbitraryTuple<Ts extends NonEmptyArray<any>> = { | ||
type ArbitraryTuple<Ts extends NonEmptyArray<any>> = { | ||
[P in keyof Ts]: fc.Arbitrary<Ts[P]>; | ||
}; | ||
declare type Prop<Context, Ts extends NonEmptyArray<any>> = ImplementationFn<Ts, Context>; | ||
declare type PropertyTest<Context> = <Ts extends NonEmptyArray<any>>(label: string, arbitraries: ArbitraryTuple<Ts>, prop: Prop<Context, Ts>, params?: fc.Parameters<Ts>) => void; | ||
declare type AvaModifierWhitelist = 'only' | 'failing' | 'skip' | 'serial'; | ||
export declare type PropertyTestFn<Context> = PropertyTest<Context> & { | ||
type Prop<Context, Ts extends NonEmptyArray<any>> = ImplementationFn<Ts, Context>; | ||
type PropertyTest<Context> = <Ts extends NonEmptyArray<any>>(label: string, arbitraries: ArbitraryTuple<Ts>, prop: Prop<Context, Ts>, params?: fc.Parameters<Ts>) => void; | ||
type AvaModifierWhitelist = 'only' | 'failing' | 'skip' | 'serial'; | ||
export type PropertyTestFn<Context> = PropertyTest<Context> & { | ||
[Modifier in AvaModifierWhitelist]: PropertyTest<Context>; | ||
@@ -15,0 +15,0 @@ } & { |
{ | ||
"name": "@fast-check/ava", | ||
"description": "Property based testing for AVA based on fast-check", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"type": "commonjs", | ||
@@ -52,7 +52,7 @@ "main": "lib/ava-fast-check.js", | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"ava": "^5.0.1", | ||
"@types/node": "^18.11.13", | ||
"ava": "^5.1.0", | ||
"esm": "^3.2.25", | ||
"fast-check": "3.3.0", | ||
"typescript": "^4.8.4" | ||
"fast-check": "3.4.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -77,10 +77,10 @@ "keywords": [ | ||
{ | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/dubzzz" | ||
}, | ||
{ | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/fast-check" | ||
}, | ||
{ | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/dubzzz" | ||
} | ||
] | ||
} |
16069