Skip to content

Commit

Permalink
set qawolf on repl context
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Mar 10, 2020
1 parent 11df539 commit 77126a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import {
launch,
repl,
ReplContext,
saveState,
scroll,
setState,
Expand All @@ -27,5 +28,16 @@ export {
waitForPage,
};

// set qawolf on repl context
ReplContext.set('qawolf', {
launch,
register,
repl,
saveState,
scroll,
setState,
waitForPage,
});

// make repl a global
(global as any).repl = repl;

0 comments on commit 77126a8

Please sign in to comment.