You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- CodeRun has two module vars which were global to the module, but they need to be scoped to the instance of the CodeRun class currently running otherwise multiple CodeRuns will complete and use the same vars. This could happen if a work execute 2 or more tests with CodeRuns in the same batch or a single test which has multiple CodeRun steps. This could also happen with multiple calls to child tests with CodeRuns.
- Additionally, the uncaughtException was not fully working because node needs the `unhandled-rejections=strict` param which will trigger this event when an uncaught exception is thrown.
- Move the uncaughtException callback to be inside the CodeRun eval function so it can bind with the scope of the function and have access to `this` so it can call this.resolve() and fail the test with the uncaughtException error message from node.
0 commit comments