You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all we do, is that we ensure that the state of environment variables is reset between test file runs. Some tests have isolation ensured either by internally using overrideEnv util or if they're based on runServerless.
Still, it appears that in AWS SDK v2 case, the existence of AWS_SDK_LOAD_CONFIG env variable may force tests to fail, as then AWS SDK on imports unconditionally assumes the existence of .aws folder, and as the home directory is redirected to an empty temp directory, it ends with failure (see serverless/serverless#11636 (comment)).
Ideally such errors should not surface
The text was updated successfully, but these errors were encountered:
Currently, all we do, is that we ensure that the state of environment variables is reset between test file runs. Some tests have isolation ensured either by internally using
overrideEnv
util or if they're based onrunServerless.
Still, it appears that in AWS SDK v2 case, the existence of
AWS_SDK_LOAD_CONFIG
env variable may force tests to fail, as then AWS SDK on imports unconditionally assumes the existence of.aws
folder, and as the home directory is redirected to an empty temp directory, it ends with failure (see serverless/serverless#11636 (comment)).Ideally such errors should not surface
The text was updated successfully, but these errors were encountered: