Skip to content

Replace typescript-private methods with native-private #4062

Description

@janbuchar

Spy seams

A test asserts a private method was called, so # breaks it outright rather than needing a rewrite.

  • BrowserPool.executeHooks (8 sites), launchBrowser (2), overridePageClose, closeRetiredBrowserWithNoPages, closeInactiveRetiredBrowsers
  • ConcurrencySystem.autoscale (9) — tests step the autoscaling loop by hand. Also does this.autoscale = this.autoscale.bind(this) in the constructor, which is illegal for a # method; it would have to become a private field holding an arrow function.
  • SessionPool.ensureInitialized (3), createSession

Internals invoked directly

No public path to the behaviour under test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions