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
2022-11-04 16:37:47 -07:00
committed by GitHub
parent e0f275d6a6
commit 6d8fe38ac8

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();
});