Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after running "npm run test" #2

Open
jackiecheng2008 opened this issue Nov 13, 2021 · 0 comments
Open

Error after running "npm run test" #2

jackiecheng2008 opened this issue Nov 13, 2021 · 0 comments

Comments

@jackiecheng2008
Copy link

Is there any other step to follow?

Below is the error message:

Lambda Dashboard Created (43 ms)

● Lambda Dashboard Created
None of 0 resources matches resource 'AWS::CloudWatch::Dashboard' with {
"$objectLike": {
"DashboardName": "myLambdaDashboard"
}
}.

  10 |   });
  11 |     // THEN
> 12 |     expectCDK(stack).to(haveResource("AWS::CloudWatch::Dashboard", {
     |                      ^
  13 |       DashboardName: "myLambdaDashboard"
  14 |     }));
  15 | });

  at HaveResourceAssertion.assertOrThrow (node_modules/@aws-cdk/assert/lib/assertions/have-resource.ts:100:13)
  at StackInspector._to (node_modules/@aws-cdk/assert/lib/inspector.ts:25:15)
  at StackInspector.to (node_modules/@aws-cdk/assert/lib/inspector.ts:15:14)
  at Object.<anonymous> (test/cdk-lambda-dashboard.test.ts:12:22)

Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant