New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fast-check/jest

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fast-check/jest - npm Package Compare versions

Comparing version 1.6.2 to 1.7.0

11

CHANGELOG.md

@@ -0,1 +1,12 @@

# 1.7.0
_Supporting passing options to worker_
[[Code](https://github.com/dubzzz/fast-check/tree/jest%2Fv1.7.0)][[Diff](https://github.com/dubzzz/fast-check/compare/jest%2Fv1.6.2...jest%2Fv1.7.0)]
## Features
- ([PR#3964](https://github.com/dubzzz/fast-check/pull/3964)) Support passing options to worker
---
# 1.6.2

@@ -2,0 +13,0 @@

4

lib/esm/jest-fast-check-worker.js

@@ -47,5 +47,5 @@ import * as fc from 'fast-check';

}
export const init = (url) => {
export const init = (url, options) => {
const fcExtra = {
asyncProperty: propertyFor(url),
asyncProperty: propertyFor(url, options),
assert: assert,

@@ -52,0 +52,0 @@ readConfigureGlobal: fc.readConfigureGlobal,

import * as fc from 'fast-check';
import { PropertyForOptions } from '@fast-check/worker';
import { jestExpect } from '@jest/expect';

@@ -10,3 +11,3 @@ import type { FastCheckItBuilder } from './internals/TestBuilder.js';

};
export declare const init: (url: URL) => InitOutput;
export declare const init: (url: URL, options?: PropertyForOptions) => InitOutput;
export { fc };

@@ -51,5 +51,5 @@ "use strict";

}
const init = (url) => {
const init = (url, options) => {
const fcExtra = {
asyncProperty: (0, worker_1.propertyFor)(url),
asyncProperty: (0, worker_1.propertyFor)(url, options),
assert: worker_1.assert,

@@ -56,0 +56,0 @@ readConfigureGlobal: fc.readConfigureGlobal,

{
"name": "@fast-check/jest",
"description": "Property based testing for Jest based on fast-check",
"version": "1.6.2",
"version": "1.7.0",
"type": "commonjs",

@@ -54,3 +54,3 @@ "main": "lib/jest-fast-check.js",

"peerDependencies": {
"@fast-check/worker": "~0.0.1",
"@fast-check/worker": "~0.0.7",
"@jest/expect": ">=28.0.0",

@@ -68,11 +68,11 @@ "@jest/globals": ">=25.5.2"

"devDependencies": {
"@fast-check/worker": "0.0.6",
"@fast-check/worker": "0.0.7",
"@jest/expect": "^29.5.0",
"@jest/globals": "^29.5.0",
"@types/node": "^18.16.10",
"fast-check": "3.8.2",
"@types/node": "^18.16.18",
"fast-check": "3.10.0",
"jest": "^29.5.0",
"jest-jasmine2": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^4.9.5"
"typescript": "^5.0.4"
},

@@ -79,0 +79,0 @@ "keywords": [

@@ -93,2 +93,3 @@ # `@fast-check/jest`

const { test, expect } = init(pathToFileURL(__filename));
// can also be passed options such as isolationLevel: init(pathToFileURL(__filename), {})

@@ -106,2 +107,3 @@ test.prop([fc.constant(null)])('should pass', (value) => {

const { test, expect } = await init(new URL(import.meta.url));
// can also be passed options such as isolationLevel: init(new URL(import.meta.url), {})

@@ -108,0 +110,0 @@ test.prop([fc.constant(null)])('should pass', (value) => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc