[core] Inconsistent context type(s) #8865
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
good first issue
Related to contributions. See CONTRIBUTING.md
in-progress
This issue is being actively worked on.
p2
The CDK context is defined as a pair
string -> any
However
AppProps
defines a context asstring -> string
pair.Reproduction Steps
Once an application start to use JSON structs as a context value then it becomes almost impossible to mock an application with the context (everything works with deployment because context is passed via cdk.json):
Here two major question:
Vpc.fromLookup
does it.cdk.App
to acceptstring -> any
pair so that we can mock the contextEnvironment
The text was updated successfully, but these errors were encountered: