Open dontirun opened 3 months ago
@dontirun what's the content of the cdk.context.json
? I feel like it's for a different purpose than the cdk.json
.
I'm pretty sure cdk allows you to run without a cdk.json
as long as you give it a --app
so you can run it without having to be in a project directory. So in that sense I'm not sure if it makes sense necessarily to have a cdk.json
autogenerated?
It just has the watch
property and nothing else. The watch property should be in the cdk.json
It just has the
watch
property and nothing else. The watch property should be in the cdk.json
yeah that seems a bit weird.
Yes it does create cdk.context.json with an empty watch. Looks like a bug to me.
{
"watch": {}
}
Describe the bug
integ runner creates a
cdk.context.json
file with thewatch
field if the the context file does not exist, when it actually needs acdk.json
with thewatch
field.Expected Behavior
Create a
cdk.json
with thewatch
field if it doesn't existCurrent Behavior
integ runner creates a
cdk.context.json
file with thewatch
field if the the context file does not existReproduction Steps
Add
integ-runner
andinteg-tests-alpha
to thepackage.json
npm install
create the following
test/integ.example.test.ts
fileconst app = new cdk.App();
class TestStack extends cdk.Stack { constructor(scope: Construct, id: string) { super(scope, id); new cdk.CfnWaitConditionHandle(this, 'NullResource'); } } const stack = new TestStack(app, 'TestStack'); new integ.IntegTest(app, 'integration-test', { testCases: [stack], });