great-kite-11257
02/10/2023, 7:44 PMTypeError: The following error originated from your test code, not from Cypress.
> Cannot read properties of undefined (reading 'type')
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Here's how I create my connection:
import {DataSource} from "typeorm";
export const AppDataSource = new DataSource({
type: "postgres",
host: "localhost",
port: 5432,
username: "postgres",
password: "123",
database: "test_typeorm",
synchronize: true,
logging: true,
})bland-salesclerk-62828
02/11/2023, 6:28 AM