prisma / prisma-test-utils

A collection of data model agnostic test utils.
114 stars 11 forks source link

Fakers are too broad for all possible backing columns #15

Open janpio opened 4 years ago

janpio commented 4 years ago

Pisma's Float can be backed by e.g. a decimal(10,2) on the database side, which can not take all float numbers.

This can lead to failures as this: https://github.com/prisma/prisma-test-utils-automation/issues/5#issuecomment-592984891

A solution could be: https://github.com/prisma/prisma-test-utils-automation/issues/5#issuecomment-592999245

But we need to find better values of course, -10000/10000 is only a proof of concept quick example that this indeed a viable fix.

janpio commented 4 years ago

Same applies for Int as well - which can be a tinyint(3) unsigned in the database and thus is not happy with min: -2147483647, max: 2147483647 at all.