prismock
prismock copied to clipboard
A mock for PrismaClient, dedicated to unit testing.
# Problem The [`aggregateSum`](https://github.com/morintd/prismock/blob/9fa7e56e1baaa11f477cd8fb58ae062e51309be9/src/lib/operations/aggregate.ts#L67) function doesn't work for values in a `Decimal` column. Given a table like | value (Decimal) | |-----------------| | 1 | | 2 | | 3...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint-plugin-react](https://redirect.github.com/jsx-eslint/eslint-plugin-react) | [`7.36.0` -> `7.37.1`](https://renovatebot.com/diffs/npm/eslint-plugin-react/7.36.0/7.37.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin) ([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)) | [`8.5.0` -> `8.8.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/8.5.0/8.8.0) | [](https://docs.renovatebot.com/merge-confidence/) |...
Hello, i have an issue trying to implement this package. It seems like im missing some configuration, and i cannot seem to be able to make it work. I am...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@semantic-release/github](https://redirect.github.com/semantic-release/github) | [`10.3.3` -> `10.3.5`](https://renovatebot.com/diffs/npm/@semantic-release%2fgithub/10.3.3/10.3.5) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...
Encountered an issue where `update()` and `findUnique()` were misbehaving when the underlying compound id wasn't explicitly given a name. This PR adds a test for this case and includes the...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint-plugin-n](https://redirect.github.com/eslint-community/eslint-plugin-n) | [`17.10.2` -> `17.10.3`](https://renovatebot.com/diffs/npm/eslint-plugin-n/17.10.2/17.10.3) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint](https://eslint.org) ([source](https://redirect.github.com/eslint/eslint)) | [`8.57.0` -> `8.57.1`](https://renovatebot.com/diffs/npm/eslint/8.57.0/8.57.1) | [](https://docs.renovatebot.com/merge-confidence/) |...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [cspell](https://cspell.org/) ([source](https://redirect.github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell)) | [`8.14.2` -> `8.14.4`](https://renovatebot.com/diffs/npm/cspell/8.14.2/8.14.4) | [](https://docs.renovatebot.com/merge-confidence/) |...
First of all, this library is great so far. It's saved me a ton of work. Prisma is really lacking when it comes to unit testing, so I really appreciate...