mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
removed logging
This commit is contained in:
parent
46d0021a99
commit
48e64e6973
@ -15,7 +15,7 @@ describe("find options > find operators > ArrayContains", () => {
|
||||
(connections = await createTestingConnections({
|
||||
__dirname,
|
||||
enabledDrivers: ["postgres"],
|
||||
logging: true,
|
||||
// logging: true,
|
||||
})),
|
||||
)
|
||||
beforeEach(() => reloadTestingDatabases(connections))
|
||||
|
||||
@ -15,7 +15,7 @@ describe("jsonb type", () => {
|
||||
(connections = await createTestingConnections({
|
||||
entities: [Record],
|
||||
enabledDrivers: ["postgres"], // because only postgres supports jsonb type
|
||||
logging: true,
|
||||
// logging: true,
|
||||
})),
|
||||
)
|
||||
beforeEach(() => reloadTestingDatabases(connections))
|
||||
|
||||
@ -14,7 +14,7 @@ describe("tree tables > materialized-path", () => {
|
||||
async () =>
|
||||
(connections = await createTestingConnections({
|
||||
entities: [Product, Category],
|
||||
logging: true,
|
||||
// logging: true,
|
||||
})),
|
||||
)
|
||||
beforeEach(() => reloadTestingDatabases(connections))
|
||||
|
||||
@ -47,7 +47,7 @@ describe("github issues > #1055 ind with relations not working, correct syntax c
|
||||
})
|
||||
await manager.save(child)
|
||||
|
||||
console.log("loadedParent", loadedParent)
|
||||
// console.log("loadedParent", loadedParent)
|
||||
|
||||
const foundChild = await manager.findOne(Child, {
|
||||
where: {
|
||||
|
||||
@ -44,7 +44,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(selectQuery.includes(lock)).not.to.equal(true)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -64,7 +64,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(selectQuery.includes(lock)).to.equal(true)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -85,7 +85,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(countInstances(selectQuery, lock)).to.equal(2)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -107,7 +107,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(countInstances(selectQuery, lock)).to.equal(3)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -133,7 +133,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("cart.ID=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(countInstances(selectQuery, lock)).to.equal(3)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -153,7 +153,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(selectQuery.includes(lock)).to.equal(true)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -173,7 +173,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(selectQuery.includes(lock)).to.equal(true)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
@ -194,7 +194,7 @@ describe("mssql > add lock clause for MSSQL select with join clause", () => {
|
||||
.where("1=1")
|
||||
.getQuery()
|
||||
|
||||
console.log(selectQuery)
|
||||
// console.log(selectQuery)
|
||||
expect(countInstances(selectQuery, lock)).to.equal(2)
|
||||
|
||||
await connection.query(selectQuery)
|
||||
|
||||
@ -27,7 +27,7 @@ describe("other issues > bulk save in sqlite", () => {
|
||||
for (let i = 1; i <= 10000; i++) {
|
||||
posts.push(new Post(i, "Post #" + i))
|
||||
}
|
||||
console.log(`saving...`)
|
||||
// console.log(`saving...`)
|
||||
await connection.manager.save(posts)
|
||||
}),
|
||||
))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user