Remove redundant env from jestTestcontainersConfigGenerator

This commit is contained in:
adrinr 2023-02-01 11:49:25 +00:00
parent e639b7cf26
commit 265c22f6d3
4 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
module.exports = dependenciesEnv => { module.exports = () => {
return { return {
dockerCompose: { dockerCompose: {
composeFilePath: "../../hosting", composeFilePath: "../../hosting",

View File

@ -1,8 +1,8 @@
const { join } = require("path") const { join } = require("path")
const { parsed: env } = require("dotenv").config({ require("dotenv").config({
path: join(__dirname, "..", "..", "hosting", ".env"), path: join(__dirname, "..", "..", "hosting", ".env"),
}) })
const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator") const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator")
module.exports = jestTestcontainersConfigGenerator(env) module.exports = jestTestcontainersConfigGenerator()

View File

@ -1,8 +1,8 @@
const { join } = require("path") const { join } = require("path")
const { parsed: env } = require("dotenv").config({ require("dotenv").config({
path: join(__dirname, "..", "..", "hosting", ".env"), path: join(__dirname, "..", "..", "hosting", ".env"),
}) })
const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator") const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator")
module.exports = jestTestcontainersConfigGenerator(env) module.exports = jestTestcontainersConfigGenerator()

View File

@ -1,8 +1,8 @@
const { join } = require("path") const { join } = require("path")
const { parsed: env } = require("dotenv").config({ require("dotenv").config({
path: join(__dirname, "..", "..", "hosting", ".env"), path: join(__dirname, "..", "..", "hosting", ".env"),
}) })
const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator") const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator")
module.exports = jestTestcontainersConfigGenerator(env) module.exports = jestTestcontainersConfigGenerator()