mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-06-08 19:47:08 +00:00
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:
parent
e0f275d6a6
commit
6d8fe38ac8
1 changed files with 1 additions and 4 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue