Skip to content

Commit

Permalink
Fix test running by extracting environment variables into .env.yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesir87 committed Dec 23, 2024
1 parent bb25dd9 commit 8fa4412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEBUG=testcontainers*
NODE_OPTIONS=--dns-result-order=ipv4first
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"dev-container": "nodemon src/index.js",
"prettier": "prettier --write \"**/*.js\"",
"prettier-check": "prettier --check \"**/*.js\"",
"test": "DEBUG=testcontainers* NODE_OPTIONS=--dns-result-order=ipv4first jest --detectOpenHandles",
"test": "jest --detectOpenHandles",
"unit-test": "jest --detectOpenHandles --testPathIgnorePatterns \"test/integration/.*\\.spec\\.js\"",
"integration-test": "DEBUG=testcontainers* NODE_OPTIONS=--dns-result-order=ipv4first jest \"test/integration/.*\\.spec\\.js\" --detectOpenHandles",
"test-watch": "NODE_OPTIONS=--dns-result-order=ipv4first jest --watch \"test/**/*.spec.js\" --detectOpenHandles",
"integration-test": "jest \"test/integration/.*\\.spec\\.js\" --detectOpenHandles",
"test-watch": "jest --watch \"test/**/*.spec.js\" --detectOpenHandles",
"prepare": "husky install"
},
"dependencies": {
Expand Down

0 comments on commit 8fa4412

Please sign in to comment.