---
title: "Comment by Nemanja Mitic on \"A Better Way To Run Integration Tests With Prisma and PostgresQL\" | Hashnode"
description: "Interesting method. I don&#39;t understand only how do you switch dev and test database urls, I don&#39;t see two .env files in your example repo? You don&#39;t"
url: "https://hashnode.com/posts/a-better-way-to-run-integration-tests-with-prisma-and-postgresql/61569b8c28ed304eb1d80953/comment/6265b3ac5dd5677e9b8df1f2"
---

[Discussion](https://hashnode.com/posts/a-better-way-to-run-integration-tests-with-prisma-and-postgresql/61569b8c28ed304eb1d80953)

Comment [A Better Way To Run Integration Tests With Prisma and PostgresQL](https://hashnode.com/posts/a-better-way-to-run-integration-tests-with-prisma-and-postgresql/61569b8c28ed304eb1d80953)

[Nemanja Mitic](https://hashnode.com/@nemanjam)

[Apr 24, 2022](https://hashnode.com/posts/a-better-way-to-run-integration-tests-with-prisma-and-postgresql/61569b8c28ed304eb1d80953/comment/6265b3ac5dd5677e9b8df1f2)

Interesting method. I don't understand only how do you switch dev and test database urls, I don't see two `.env` files in your example repo? You don't run tests locally, only in Github Actions?

[Manthan Mallikarjun](https://hashnode.com/@nahtnam)

[Apr 24, 2022](https://hashnode.com/posts/a-better-way-to-run-integration-tests-with-prisma-and-postgresql/61569b8c28ed304eb1d80953/comment/6265b3ac5dd5677e9b8df1f2#reply-6265c8e25dd5677e9b8df325)

Hello, the test suite works locally as well! It uses the same connection as your dev database, however, it uses a different (random) [postgres schema](https://www.postgresql.org/docs/current/ddl-schemas.html) each time. When you're using prisma in a web server you'll likely be using the "default" schema so your data will not be affected since we generate a random UUID for the schema name. See this code: [github.com/ludicroushq/prisma-integration-test-ex…](https://github.com/ludicroushq/prisma-integration-test-example/blob/master/prisma/)**mocks**/index.ts#L16-L19
