Files
dependabot[bot] a317cc8a52 build(deps): bump the e2e-prisma group
Bumps the e2e-prisma group in /e2e/api/compile/prisma with 2 updates: [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) and [prisma](https://github.com/prisma/prisma/tree/HEAD/packages/cli).


Updates `@prisma/client` from 6.16.2 to 6.16.3
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/6.16.3/packages/client)

Updates `prisma` from 6.16.2 to 6.16.3
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/6.16.3/packages/cli)

---
updated-dependencies:
- dependency-name: "@prisma/client"
  dependency-version: 6.16.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: e2e-prisma
- dependency-name: prisma
  dependency-version: 6.16.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: e2e-prisma
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 13:11:28 +02:00
..

E2E Prisma helper

This is a tiny script that is used to run our E2E tests via Prisma and @open-policy-agent/ucast-prisma.

It's invoked by e2e/compile/e2e_test.go for a subset of the tests. It reads UCAST conditions (as JSON) on STDIN, converts them to Prisma filters, and then runs a "SELECT * FROM ..." query (findMany) against the fruits table like the other tests. The returned rows are printed as JSON on STDOUT.

Test a change

To use a local change to ucast-prisma with the Compile E2E suite, you'll have to do this:

In package.json, replace the line with "@open-policy-agent/ucast-prisma" with the following:

"@open-policy-agent/ucast-prisma": "file:../../../opa-typescript/packages/ucast-prisma"

Also run npm run build in "opa-typescript/packages/ucast-prisma" to make sure the changes are built. Run npm i in e2e/prisma, and then run the E2E tests for the prisma-enabled subset:

go test -tags e2e ./compile -run 'TestCompileHappyPathE2E/postgres/prisma/.' -v