You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting to write integration tests in my Medusa store. As a starting point, I tried to run health.spec.ts, but I'm stuck with db SSL connection requirement.
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
jest.setTimeout(60 * 1000)
medusaIntegrationTestRunner({
inApp: true,
env: {},
testSuite: ({ api }) => {
describe("Ping", () => {
it("ping the server health endpoint", async () => {
const response = await api.get('/health')
expect(response.status).toEqual(200)
})
})
},
})
When I run npm run test:integration:http. I get this error
console.error
Something went wrong while running the migrations
at migrateDatabase (node_modules/@medusajs/test-utils/src/medusa-test-runner-utils/use-db.ts:27:13)
at Object.beforeAll_ (node_modules/@medusajs/test-utils/src/medusa-test-runner.ts:126:5)
console.error
Error tearing down database: The server does not support SSL connections
I'm building in local with docker, so I don't want to have to create SSL certificate to make test running. It's a nonsense, and I'm really frustrated of it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm starting to write integration tests in my Medusa store. As a starting point, I tried to run health.spec.ts, but I'm stuck with db SSL connection requirement.
When I run
npm run test:integration:http
. I get this errorMy .env.test
I'm building in local with docker, so I don't want to have to create SSL certificate to make test running. It's a nonsense, and I'm really frustrated of it.
Beta Was this translation helpful? Give feedback.
All reactions