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
This commit is contained in:
Tom Keller authored and GitHub committed 2022-11-04 23:37:47 +00:00
1 parent e0f275d6a6
commit 6d8fe38ac8
1 file changed
+1 -4
+1 -4
View File
@@ -77,11 +77,9 @@ jest.mock('axios', () => ({
}));
describe('Configure AWS Credentials', () => {
const OLD_ENV = process.env;
beforeEach(() => {
jest.resetModules();
process.env = {...OLD_ENV, ...ENVIRONMENT_VARIABLE_OVERRIDES};
process.env = { ...ENVIRONMENT_VARIABLE_OVERRIDES };
jest.clearAllMocks();
@@ -163,7 +161,6 @@ describe('Configure AWS Credentials', () => {
});
afterEach(() => {
process.env = OLD_ENV;
reset();
});