fast-check

Property based testing framework for JavaScript (like QuickCheck) written in TypeScript

MIT License

Downloads
6.1M
Stars
4.1K
Committers
68

Bot releases are hidden (Show)

fast-check - Add GitHub Sponsors link

Published by dubzzz almost 2 years ago

[Code][Diff]

Fixes

  • (PR#3316) Funding: Add link to GitHub sponsors in funding
  • (PR#3319) Test: Internalize bundle checks for ava package
fast-check - First stable release of `@fast-check/worker`

Published by dubzzz about 2 years ago

[Code]

The bare metal version of fast-check is unable to stop a synchronous code (as most of test runners in JavaScript). This package can be plugged onto fast-check to make it able to stop synchronous code going into infinite loops, shrink the case and report it as any other failure.

fast-check - Stop copying the Error into the thrown one but use cause when asked too

Published by dubzzz about 2 years ago

[Code][Diff]

Features

  • (PR#2965) Attach the original Error as a cause of thrown one
  • (PR#3224) Attach real errors to internal failures

Fixes

  • (PR#3225) CI: Publish @fast-check/poisoning on CodeSandbox's builds
  • (PR#3260) Doc: Sync with current path
  • (PR#3264) Doc: Improve grammar in HowItWorks
  • (PR#3292) Test: Stabilize tests of SlicedBasedGenerator
fast-check - Align seed computation with fast-check's one

Published by dubzzz about 2 years ago

[Code][Diff]

Features

  • (PR#3278) Align seed computation with fast-check's one

Fixes

  • (PR#3280) Bug: Pass the forged seed to the runner
  • (PR#3283) Bug: Fallback on the seed coming from globals if any
fast-check - Align seed computation with fast-check's one

Published by dubzzz about 2 years ago

[Code][Diff]

Features

  • (PR#3277) Align seed computation with fast-check's one

Fixes

  • (PR#3279) Bug: Pass the forged seed to the runner
  • (PR#3281) Bug: Fallback on the seed coming from globals if any
  • (PR#3282) Test: Rewrite tests of @fast-check/jest
  • (PR#3284) Test: Faster tests without babel-jest
fast-check - Add ability to omit some instances when checking for poisoning

Published by dubzzz about 2 years ago

[Code][Diff]

Features

  • (PR#3160) Adopt shorter names for labels of globals
  • (PR#3176) Do not track private globals
  • (PR#3198) Add ability to ignore some roots
  • (PR#3199) Also track roots starting by "_"
fast-check - Only keep comments in published typings not in published code

Published by dubzzz about 2 years ago

[Code][Diff]

Fixes

  • (PR#3213) Script: Factorize production tsconfig.json
fast-check - Support more variants of `it`

Published by dubzzz about 2 years ago

[Code][Diff]

Features

  • (PR#3203) Add it.failing and it.concurrent and combinations

Fixes

  • (PR#3200) CI: Extract jest config outside of package.json
  • (PR#3212) CI: Share tsconfig.json across public packages
  • (PR#3213) Script: Factorize production tsconfig.json
  • (PR#3201) Refactor: Rely on @jest/globals for @fast-check/jest
  • (PR#3213) Script: Factorize production tsconfig.json
fast-check - Increased resiliency to poisoned globals

Published by dubzzz about 2 years ago

[Code][Diff]

Fixes

  • (PR#3172) Bug: Fix some remaining accesses to global properties
  • (PR#3165) Bug: Resist to poisoning of top-level types
  • (PR#3184) CI: Require renovate to always try to dedupe
  • (PR#3186) CI: Adapt configuration for new ts-jest
  • (PR#3194) CI: Attempt to fix "please deploy"
  • (PR#3196) CI: Build every package for "please deploy"
  • (PR#3208) CI: Better PRs for changelogs cross packages
  • (PR#3156) Doc: Add missing changesets in changelog of 2.21.0
  • (PR#3185) Refactor: Attach a depth onto globals internally
  • (PR#3157) Script: Less verbose description for PRs of CHANGELOG
  • (PR#3174) Test: Add tests dropping all globals
  • (PR#3183) Test: Add some more type related tests for oneof
  • (PR#3076) Test: Check arbitraries do not cause any poisoning
  • (PR#3205) Test: Add missing "typecheck" scripts on packages
fast-check - Only keep comments in published typings not in published code

Published by dubzzz about 2 years ago

[Code][Diff]

Fixes

  • (PR#3212) CI: Share tsconfig.json across public packages
  • (PR#3213) Script: Factorize production tsconfig.json
fast-check - Better permissions on the executable script exposed in bin

Published by dubzzz about 2 years ago

[Code][Diff]

Fixes

  • (PR#3142) Bug: Fix permissions of bin/packaged.js
fast-check - More resilient to external poisoning on all arbitraries

Published by dubzzz about 2 years ago

[Code][Diff]

Fixes

  • (PR#3094) Bug: Make numeric arbitraries resistant to poisoning
  • (PR#3096) Bug: Make single char arbitraries resistant to poisoning
  • (PR#3097) Bug: Make simple combinators arbitraries resistant to poisoning
  • (PR#3098) Bug: Make array combinators arbitraries resistant to poisoning
  • (PR#3099) Bug: Make multi chars arbitraries resistant to poisoning
  • (PR#3102) Bug: Fix safeApply never calling original apply
  • (PR#3103) Bug: Make object arbitraries resistant to poisoning
  • (PR#3104) Bug: Make typed arrays arbitraries resistant to poisoning
  • (PR#3106) Bug: Make recursive arbitraries resistant to poisoning
  • (PR#3107) Bug: Make function arbitraries resistant to poisoning
  • (PR#3108) Bug: Make complex strings arbitraries resistant to poisoning
  • (PR#3143) Bug: Make webFragments/Segment/QueryParameters resistant to poisoning
  • (PR#3152) Bug: Protect string generators against poisoning
  • (PR#3101) CI: Do not suggest private packages during version bumps
  • (PR#3113) CI: Consider ⚡️ aka zap PRs as fixes for changelog
  • (PR#3111) CI: Try to configure renovate to open more PRs
  • (PR#3150) CI: Change update strategy for renovate
  • (PR#3151) CI: Update bump strategy of renovate
  • (PR#3141) Clean: Drop unused dependencies
  • (PR#3100) Performance: Drop unneeded copy for full custom uniqueArray
  • (PR#3105) Performance: Faster implementation for safeApply
  • (PR#3112) Performance: Speed-up all safe versions built-in methods
  • (PR#3109) Refactor: Extract and share code computing safe versions for built-ins
  • (PR#3154) Script: More verbose CHANGELOG script and continue on failure
fast-check - First experimental release of `@fast-check/poisoning`

Published by dubzzz about 2 years ago

fast-check - More resilient to external poisoning on `assert` and `property`

Published by dubzzz about 2 years ago

Fixes

  • (PR#3082) Bug: Protect assert from poisoned Math or Date
  • (PR#3086) Bug: Resist to poisoning of Object
  • (PR#3087) Bug: Resist to poisoning of Function/Array/String
  • (PR#3089) Bug: Clear poisoning instability in filter, map, chain
  • (PR#3079) CI: Auto-cancel previous runs on new commits
  • (PR#3088) Script: Add script to run e2e tests in debug mode
  • (PR#3092) Script: Better handle new projects in changelog generator
  • (PR#3081) Test: Add some poisoning e2e for fast-check
  • (PR#3085) Test: Check poisoning against noop arbitrary (for now)
fast-check - Add missing export for package.json

Published by dubzzz about 2 years ago

Fixes

  • (PR#3066) Bug: Export package.json
fast-check - Add missing export for package.json

Published by dubzzz about 2 years ago

Fixes

  • (PR#3066) Bug: Export package.json
fast-check - Better package.json definition and `__proto__` related fixes

Published by dubzzz about 2 years ago

Fixes

  • (PR#3066) Bug: Export package.json
  • (PR#3070) Bug: Support __proto__ as key in record
  • (PR#3068) Test: Fix test comparing stringify and JSON.stringify
  • (PR#3069) Test: Fix tests on record wrongly manipulating __proto__
fast-check - Generate more dangerous strings by default

Published by dubzzz about 2 years ago

[Code][Diff]

Features

  • (PR#2975) Sanitize constraints used internally by "oneof" as much as possible
  • (PR#3048) Add experimental "custom slices" constraint on array
  • (PR#3043) Generate dangerous strings by default

Fixes

  • (PR#3049) Bug: Fix out-of-range in SlicedBasedGenerator
  • (PR#3050) Bug: Allow strange keys as keys of dictionary
  • (PR#3051) Bug: Better rounding in statistics
  • (PR#3052) CI: Add missing Ubuntu env for e2e
  • (PR#3047) Refactor: Implement sliced based generator for arrays
  • (PR#3059) Script: Add links to buggy PRs in changelog PR
  • (PR#3060) Script: Only commit package.json corresponding to impacted CHANGELOGs
fast-check - First stable release of `@fast-check/jest`

Published by dubzzz about 2 years ago

[Code]

@fast-check/jest is replacing jest-fast-check. The code moved from dubzzz/jest-fast-check to dubzzz/fast-check for simpler maintenance.

fast-check - First stable release of `@fast-check/ava`

Published by dubzzz about 2 years ago

[Code]

@fast-check/ava is replacing ava-fast-check. The code moved from dubzzz/ava-fast-check to dubzzz/fast-check for simpler maintenance.