awsdocs/aws-cdk-guide

Creating a serverless application using the AWS CDK guide failing unit test

Opened this issue · 0 comments

Hi,

When following along with the guide Creating a serverless application using the AWS CDK guide

After completing the example code, the unit test is failing on this line in the resources\widgets.js file:

const stack = new WidgetService(app, 'WidgetService');

The error is:

Bucket at 'WidgetService/WidgetStore' should be created in the scope of a Stack, but no Stack found

I have done a lot of reading and playing around with samples to fix this, but have not been able to find a solution to get this test to pass. Any help with this would be great.