Skip to content

Error after running "npm run test" #2

Description

@jackiecheng2008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions