Skip to content

Commit 33bfe77

Browse files
committed
Bump to the latest version of fast-check
It should provide a better memory footprint. Previously the default value of maxKeys was 10 (not accessible by the end-user in previous version). The value has been reduced to 5 as it should already be enough to detect most of problems related to objects.
1 parent 3837ac6 commit 33bfe77

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"eslint-plugin-react": "^7.1.0",
4040
"eslint-plugin-relay": "~0.0.19",
4141
"execa": "^1.0.0",
42-
"fast-check": "^1.12.0",
42+
"fast-check": "^1.13.0",
4343
"glob": "^7.1.1",
4444
"graceful-fs": "^4.1.15",
4545
"isbinaryfile": "^4.0.0",

packages/expect/src/__tests__/__arbitraries__/sharedSettings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import fc from 'fast-check';
1111
// settings for anything arbitrary
1212
export const anythingSettings = {
1313
key: fc.oneof(fc.string(), fc.constantFrom('k1', 'k2', 'k3')),
14+
maxDepth: 2, // Limit object depth (default: 2)
15+
maxKeys: 5, // Limit number of keys per object (default: 5)
1416
withBoxedValues: true,
1517
// Issue #7975 have to be fixed before enabling the generation of Map
1618
withMap: false,

yarn.lock

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5634,12 +5634,11 @@ fancy-log@^1.3.2:
56345634
parse-node-version "^1.0.0"
56355635
time-stamp "^1.0.0"
56365636

5637-
fast-check@^1.12.0:
5638-
version "1.12.0"
5639-
resolved "https://registry.yarnpkg.com/fast-check/-/fast-check-1.12.0.tgz#bff7908aa357703f207ee1877ffcf4486a698aa0"
5640-
integrity sha512-r/zmvxG/8IsxyOzf9T6wnjJQjSLmymAETeRVfs4/0VzxBmyK48o871BRKmEIgEBLmrg9klh3e4A4BZc3yrH2QQ==
5637+
fast-check@^1.13.0:
5638+
version "1.13.0"
5639+
resolved "https://registry.yarnpkg.com/fast-check/-/fast-check-1.13.0.tgz#0f418efb7a8a1fc3f2371f9113b00c2605711e60"
5640+
integrity sha512-GlpwnO0mgNV5L5WqU6xGAURw9MMhePLCNfPXgG7hDyABl8obqCK03auKZArBPbybzuYFSKQ2wBMonnf1tbelkw==
56415641
dependencies:
5642-
lorem-ipsum "~1.0.6"
56435642
pure-rand "^1.6.2"
56445643

56455644
fast-deep-equal@^2.0.1:
@@ -8353,13 +8352,6 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1, loose-envify@^1.4
83538352
dependencies:
83548353
js-tokens "^3.0.0 || ^4.0.0"
83558354

8356-
lorem-ipsum@~1.0.6:
8357-
version "1.0.6"
8358-
resolved "https://registry.yarnpkg.com/lorem-ipsum/-/lorem-ipsum-1.0.6.tgz#69e9ab02bbb0991915d71b5559fe016d526f013f"
8359-
integrity sha512-Rx4XH8X4KSDCKAVvWGYlhAfNqdUP5ZdT4rRyf0jjrvWgtViZimDIlopWNfn/y3lGM5K4uuiAoY28TaD+7YKFrQ==
8360-
dependencies:
8361-
minimist "~1.2.0"
8362-
83638355
loud-rejection@^1.0.0:
83648356
version "1.6.0"
83658357
resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f"
@@ -8924,7 +8916,7 @@ [email protected]:
89248916
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
89258917
integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=
89268918

8927-
[email protected], minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@~1.2.0:
8919+
[email protected], minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
89288920
version "1.2.0"
89298921
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
89308922
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=

0 commit comments

Comments
 (0)