We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44b1b6c + 4c5ffd5 commit f772bc8Copy full SHA for f772bc8
packages/evolution/src/core/TransactionMetadatum.ts
@@ -258,12 +258,15 @@ export const arbitrary: FastCheck.Arbitrary<TransactionMetadatum> = FastCheck.on
258
),
259
{ maxLength: 3 }
260
).map((value) => new ArrayMetadatum({ value })),
261
- FastCheck.array(
+ FastCheck.uniqueArray(
262
FastCheck.tuple(
263
FastCheck.string().map((value) => new TextMetadatum({ value })),
264
int64Arbitrary.map((value) => new IntMetadatum({ value }))
265
266
- { maxLength: 3 }
+ {
267
+ maxLength: 3,
268
+ selector: ([key]) => key.value // Ensure unique keys by their string value
269
+ }
270
).map((entries) => {
271
const map = new Map()
272
for (const [key, value] of entries) {
0 commit comments