pulumi/sdk/nodejs/tests/runtime/langhost
Julien 009919a0d5
Fix checking assertions in the log callback of nodejs engine tests (#17715)
While adding a new test in https://github.com/pulumi/pulumi/pull/17632 I
noticed that assertions or thrown errors in the log callback are not
actually checked. This PR fixes this by tracking any error thrown from
the callback and then failing the test if one was found.

Somewhat surprisingly, we did not break anything, even though the tests
didn't always check what we thought they did. I validated the fix by
intentionally breaking some of the tests and asserting that they started
failing.
2024-11-07 21:21:27 +00:00
..
cases Add NodeJS test for parameterized providers #2 (#16901) 2024-08-09 08:34:29 +00:00
run.spec.ts Fix checking assertions in the log callback of nodejs engine tests (#17715) 2024-11-07 21:21:27 +00:00