aws-samples / aws-samples/aws-cdk-lambda-cloudwatch-dashboard

Error after running "npm run test"

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
17
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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. (test/cdk-lambda-dashboard.test.ts:12:22)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.