onmyway133 / notes

:notebook_with_decorative_cover: Issues and solutions I found during development, mostly iOS
https://onmyway133.com/
MIT License
63 stars 4 forks source link

jest Max -13219199999 should be greater than min 0 #671

Open onmyway133 opened 8 months ago

onmyway133 commented 8 months ago
FakerError(`Max ${r} should be greater than min ${n}.`

n [Error]: Max -13219199999 should be greater than min 0.
        at y.int (/Uses/project/app/.pnpm/@faker-js+faker@8.4.1/node_modules/@faker-js/faker/dist/cjs/modules/number/index.js:1:961)
        at T.between (/Uses/project/app/.pnpm/@faker-js+faker@8.4.1/node_modules/@faker-js/faker/dist/cjs/modules/date/index.js:1:2238)
        at Module.dateSince (/Uses/project/app/.pnpm/@dnb-shared-libs+factories@0.5.0_@dnb-shared-libs+types@2.2.0_@faker-js+faker@8.4.1_@types+react@18.2.67_react@18.2.0/node_modules/@dnb-shared-libs/src/helpers/fake.ts:104:25)
        at Fake.dateSince (/Uses/project/app/.pnpm/@dnb-shared-libs+factories@0.5.0_@dnb-shared-libs+types@2.2.0_@faker-js+faker@8.4.1_@types+react@18.2.67_react@18.2.0/node_modules/@dnb-shared-libs/src/lib/subscription.ts:38:27)

Check date.between(fromDate, toDate)