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
Problem:
Even after 6d66720, tests still
sometimes fail because the global schemaService is not properly
restored:
createNewSamApp
addInitialLaunchConfiguration
produces and returns initial launch configurations:
TypeError: Cannot read properties of undefined (reading 'registerMapping')
at CloudFormationTemplateRegistry.process (src/shared/fs/templateRegistry.ts:38:35)
at async CloudFormationTemplateRegistry.addItem (src/shared/fs/watchedFiles.ts:214:26)
at async Context.<anonymous> (src/test/lambda/commands/createNewSamApp.test.ts:118:13)
...
rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'isMapped')
stack trace: TypeError: Cannot read properties of undefined (reading 'isMapped')
at /Users/runner/work/aws-toolkit-vscode/aws-toolkit-vscode/src/shared/awsFiletypes.ts:69:59
Solution:
Use a spy on the actual service, instead of replacing the service with
a temporary stub.
0 commit comments