{
  "version": 3,
  "sources": ["../../src/assertions/template.ts"],
  "sourcesContent": ["import assert from \"node:assert\";\n\n// import { Stack, App } from \"aws-cdk-lib\";\n// import * as assertions from \"aws-cdk-lib/assertions\";\nimport * as cdk from \"aws-cdk-lib\";\n\nimport { waitForAsyncDependencies } from \"../core/async-dependencies.js\";\n\n/**\n * Suite of assertions that can be run on a CDK stack.\n * Typically used, as part of unit tests, to validate that the rendered\n * CloudFormation template has expected resources and properties.\n *\n * @see {@link cdk.assertions.Template}\n */\n// eslint-disable-next-line unicorn/no-static-only-class\nexport class Template {\n  /**\n   * Base your assertions on the CloudFormation template synthesized by a CDK `Stack`.\n   * @param stack the CDK Stack to run assertions on\n   * @see {@link cdk.assertions.Template}\n   */\n  static async fromStack(stack: cdk.Stack): Promise<cdk.assertions.Template> {\n    const app = stack.node.root;\n    assert(app instanceof cdk.App);\n    await waitForAsyncDependencies(app);\n    return cdk.assertions.Template.fromStack(stack);\n  }\n\n  /**\n   * Base your assertions from an existing CloudFormation template formatted as an in-memory\n   * JSON object.\n   * @param template the CloudFormation template formatted as a nested set of records\n   * @see {@link cdk.assertions.Template}\n   */\n  static fromJSON(template: { [key: string]: any }): cdk.assertions.Template {\n    return cdk.assertions.Template.fromJSON(template);\n  }\n\n  /**\n   * Base your assertions from an existing CloudFormation template formatted as a\n   * JSON string.\n   * @param template the CloudFormation template in\n   * @see {@link cdk.assertions.Template}\n   */\n  static fromString(template: string): cdk.assertions.Template {\n    return cdk.assertions.Template.fromString(template);\n  }\n}\n"],
  "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAmB,4BAInBC,EAAqB,4BAErBC,EAAyC,yCAUlC,MAAMJ,CAAS,CAMpB,aAAa,UAAUK,EAAoD,CACzE,MAAMC,EAAMD,EAAM,KAAK,KACvB,WAAAE,SAAOD,aAAeH,EAAI,GAAG,EAC7B,QAAM,4BAAyBG,CAAG,EAC3BH,EAAI,WAAW,SAAS,UAAUE,CAAK,CAChD,CAQA,OAAO,SAASG,EAA2D,CACzE,OAAOL,EAAI,WAAW,SAAS,SAASK,CAAQ,CAClD,CAQA,OAAO,WAAWA,EAA2C,CAC3D,OAAOL,EAAI,WAAW,SAAS,WAAWK,CAAQ,CACpD,CACF",
  "names": ["template_exports", "__export", "Template", "__toCommonJS", "import_node_assert", "cdk", "import_async_dependencies", "stack", "app", "assert", "template"]
}
