Fixing type build issue.
This commit is contained in:
parent
acc7868634
commit
41c1c6ae65
|
@ -16,7 +16,6 @@ import {
|
||||||
expectAnyExternalColsAttributes,
|
expectAnyExternalColsAttributes,
|
||||||
generator,
|
generator,
|
||||||
} from "@budibase/backend-core/tests"
|
} from "@budibase/backend-core/tests"
|
||||||
import datasource from "../../../../../api/routes/datasource"
|
|
||||||
|
|
||||||
jest.unmock("mysql2/promise")
|
jest.unmock("mysql2/promise")
|
||||||
|
|
||||||
|
@ -30,13 +29,15 @@ describe.skip("external", () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer("mysql")
|
const container = await new GenericContainer("mysql")
|
||||||
.withExposedPorts(3306)
|
.withExposedPorts(3306)
|
||||||
.withEnv("MYSQL_ROOT_PASSWORD", "admin")
|
.withEnvironment({
|
||||||
.withEnv("MYSQL_DATABASE", "db")
|
MYSQL_ROOT_PASSWORD: "admin",
|
||||||
.withEnv("MYSQL_USER", "user")
|
MYSQL_DATABASE: "db",
|
||||||
.withEnv("MYSQL_PASSWORD", "password")
|
MYSQL_USER: "user",
|
||||||
|
MYSQL_PASSWORD: "password",
|
||||||
|
})
|
||||||
.start()
|
.start()
|
||||||
|
|
||||||
const host = container.getContainerIpAddress()
|
const host = container.getHost()
|
||||||
const port = container.getMappedPort(3306)
|
const port = container.getMappedPort(3306)
|
||||||
|
|
||||||
await config.init()
|
await config.init()
|
||||||
|
|
Loading…
Reference in New Issue