Skip to content

Commit cd3fec6

Browse files
committed
do less prop testing
1 parent 5e7c3d5 commit cd3fec6

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/component/counter.test.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,18 @@ describe("counter", () => {
4747
});
4848
});
4949

50-
fcTest.prop({
51-
updates: fc.array(
52-
fc.record({
53-
v: fc.integer({ min: -10000, max: 10000 }).map((i) => i / 100),
54-
key: fc.string(),
55-
shards: fc.option(fc.integer({ min: 1, max: 100 })),
56-
}),
57-
),
58-
})(
50+
fcTest.prop(
51+
{
52+
updates: fc.array(
53+
fc.record({
54+
v: fc.integer({ min: -10000, max: 10000 }).map((i) => i / 100),
55+
key: fc.string(),
56+
shards: fc.option(fc.integer({ min: 1, max: 100 })),
57+
}),
58+
),
59+
},
60+
{ numRuns: 10 },
61+
)(
5962
"updates to counter should match in-memory counter which ignores sharding",
6063
async ({ updates }) => {
6164
const t = convexTest(schema, modules);

0 commit comments

Comments
 (0)