Skip to content

Commit

Permalink
chore: organize fake timers (#31156)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Jun 5, 2024
1 parent f9c268a commit 384eed6
Show file tree
Hide file tree
Showing 7 changed files with 980 additions and 1,810 deletions.
2 changes: 1 addition & 1 deletion packages/playwright-core/src/server/clock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Clock {
const script = `(() => {
const module = {};
${fakeTimersSource.source}
globalThis.__pwFakeTimers = (module.exports.inject())();
globalThis.__pwFakeTimers = (module.exports.inject())(globalThis);
})();`;
await this._addAndEvaluate(script);
}
Expand Down
3 changes: 0 additions & 3 deletions packages/playwright-core/src/server/injected/DEPS.list
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@
[*]
../isomorphic/
../../utils/isomorphic

[fakeTimers.ts]
../../third_party/fake-timers-src
Loading

0 comments on commit 384eed6

Please sign in to comment.