Skip to content

Commit

Permalink
Add ts to globalThis for convenience during debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Oct 3, 2022
1 parent 5b31ac2 commit 638ebf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/testRunner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ function beginTests() {

export let isWorker: boolean;
function startTestEnvironment() {
// For debugging convenience.
(globalThis as any).ts = require("./_namespaces/ts");

isWorker = handleTestConfig();
if (isWorker) {
return Parallel.Worker.start();
Expand Down

0 comments on commit 638ebf8

Please sign in to comment.