Skip to content

Commit f3fb65e

Browse files
committed
Add missing file
1 parent 9919de9 commit f3fb65e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/neo4j-driver/test/internal/shared-neo4j.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ import Neo4jContainer from './neo4j-container'
2121

2222
const env = global.__karma__ ? global.__karma__.config.env : process.env
2323

24+
console.error(env)
2425
const username = env.TEST_NEO4J_USER || 'neo4j'
2526
const password = env.TEST_NEO4J_PASS || 'password'
2627
const hostname = env.TEST_NEO4J_HOST || 'localhost'
2728
const scheme = env.TEST_NEO4J_SCHEME || 'bolt'
2829
const version = env.TEST_NEO4J_VERSION || '5.8'
30+
const testcontainersDisabled = env.TEST_CONTAINERS_DISABLED !== undefined
31+
? env.TEST_CONTAINERS_DISABLED.toUpperCase() === 'TRUE'
32+
: false
33+
2934
const cluster =
3035
env.TEST_NEO4J_IS_CLUSTER !== undefined
3136
? env.TEST_NEO4J_IS_CLUSTER === '1'
@@ -42,7 +47,8 @@ const neo4jContainer = new Neo4jContainer({
4247
password,
4348
containerLogs: false,
4449
version,
45-
edition
50+
edition,
51+
disabled: testcontainersDisabled
4652
})
4753

4854
async function start () {

0 commit comments

Comments
 (0)