avoid overriding config.js when running tests (#3205)

solves #3201
This commit is contained in:
Karsten Hassel
2023-09-22 14:45:46 +02:00
committed by GitHub
parent a67a0b677c
commit 95ec3096e0
9 changed files with 30 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
const fs = require("fs");
const helpers = require("./helpers/global-setup");
describe("templated config with port variable", () => {
@@ -6,6 +7,11 @@ describe("templated config with port variable", () => {
});
afterAll(async () => {
await helpers.stopApplication();
try {
fs.unlinkSync("tests/configs/port_variable.js");
} catch (err) {
// do nothing
}
});
it("should return 200", async () => {