Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit ccbc550

Browse files
committed
fix(runtime/scope): ✅ Update tests to resolve CI & CD issue
1 parent 82e822d commit ccbc550

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/runtime/source/scope/scope.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import { CI_CD_ENVIRONMENT_VARIABLES, inContinuousIntegration, inTest, TEST_ENVI
66

77
describe("inContinuousIntegration()", () => {
88
it(returns(false).on(`non-existing environment variables`).samples(CI_CD_ENVIRONMENT_VARIABLES), () => {
9+
// NOTE: This is for the CI & CD - test
10+
for (const variable of CI_CD_ENVIRONMENT_VARIABLES) {
11+
deleteEnvironmentVariable(variable);
12+
}
13+
914
expect(inContinuousIntegration()).toBe(false);
1015
});
1116

@@ -20,7 +25,10 @@ describe("inContinuousIntegration()", () => {
2025

2126
describe("inTest()", () => {
2227
it(returns(false).on(`non-existing environment variables`).samples(TEST_ENVIRONMENT_VARIABLES), () => {
23-
deleteEnvironmentVariable("VITEST");
28+
// NOTE: This is for the test
29+
for (const variable of TEST_ENVIRONMENT_VARIABLES) {
30+
deleteEnvironmentVariable(variable);
31+
}
2432
expect(inTest()).toBe(false);
2533
});
2634

0 commit comments

Comments
 (0)