Closed pocesar closed 4 years ago
I don't know what is failing on the test, but I guess something checks for the runtime. the PR isn't complete, I need to remove the omitted 'runtime' from other places as well like executor
Looks like our tests use inline code to simplify which are breaking when we default to node 12. We should update the tests to use an asset.
FAIL test/lambda/test.function.js
● Function › should install clients in context
Inline source not allowed for nodejs12.x
84 |
85 | this.resource = scope.chain(scope => (props.functionProps || Build.of({})).map(functionProps => {
> 86 | const lambdaFunction = new lambda.Function(scope, id, {
| ^
87 | runtime: lambda.Runtime.NODEJS_12_X,
88 | ...functionProps,
89 | code: Code.tryGetCode(scope) || Code.mock,
I'm reverting changing the default runtime, just leaving the possibility to override it
Omit
infunctionProps
lambda.Runtime.NODEJS_12_X