fix(cli): environment resolution in the single-entry export format (#3687)

This commit is contained in:
James George
2023-12-22 19:21:33 +05:30
committed by GitHub
parent ddf7eb6ad6
commit 0df194f9c5
6 changed files with 79 additions and 6 deletions

View File

@@ -118,6 +118,15 @@ describe("Test 'hopp test <file> --env <file>' command:", () => {
const { error } = await runCLI(args);
expect(error).toBeNull();
});
test("Correctly resolves environment variables referenced in the request body", async () => {
const COLL_PATH = getTestJsonFilePath("req-body-env-vars-coll.json");
const ENVS_PATH = getTestJsonFilePath("req-body-env-vars-envs.json");
const args = `test ${COLL_PATH} --env ${ENVS_PATH}`;
const { error } = await runCLI(args);
expect(error).toBeNull();
});
});
describe("Test 'hopp test <file> --delay <delay_in_ms>' command:", () => {