Skip to content

Commit 6d8fe38

Browse files
authored
Kellertk/packaging fix (#566)
* fix: packaging test failure The tests fail if there are credentials available in the env, so we need to get the AWS credentials *after* the package step. * chore: remove unnecessary environment manipulation
1 parent e0f275d commit 6d8fe38

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

index.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ jest.mock('axios', () => ({
7777
}));
7878

7979
describe('Configure AWS Credentials', () => {
80-
const OLD_ENV = process.env;
81-
8280
beforeEach(() => {
8381
jest.resetModules();
84-
process.env = {...OLD_ENV, ...ENVIRONMENT_VARIABLE_OVERRIDES};
82+
process.env = { ...ENVIRONMENT_VARIABLE_OVERRIDES };
8583

8684
jest.clearAllMocks();
8785

@@ -163,7 +161,6 @@ describe('Configure AWS Credentials', () => {
163161
});
164162

165163
afterEach(() => {
166-
process.env = OLD_ENV;
167164
reset();
168165
});
169166

0 commit comments

Comments
 (0)