Why is my test failing?

Full error log

  places service
    ✕ should find place (456 ms)

  ● places service › should find place


    Invalid `prisma.queryRaw()` invocation:


      Raw query failed. Code: `1`. Message: `no such table: UserExample`

      at cb (../node_modules/@prisma/client/runtime/index.js:36494:17)
      at teardown (../node_modules/@redwoodjs/testing/config/jest/api/jest.setup.js:37:5)
      at Object.<anonymous> (../node_modules/@redwoodjs/testing/config/jest/api/jest.setup.js:109:3)

I solved I had to seed in some data into the database

yarn rw prisma migrate dev

Weird.
Your working database and your test database are different, yarn rw prisma migrate dev only works on your working database. To get some data in your test database you should use scenarios: Docs - Testing : RedwoodJS Docs

@guledali instead of seeding that data, you can also use “scenarios”. See: Docs - Testing : RedwoodJS Docs