Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Refactor {launch} from@packages/launcher#32687

Draft
cacieprins wants to merge 10 commits intodevelopfrom
chore/launcher-launch-refactor
Draft

chore: Refactor {launch} from@packages/launcher#32687
cacieprins wants to merge 10 commits intodevelopfrom
chore/launcher-launch-refactor

Conversation

@cacieprins
Copy link
Contributor

  • Closes

Additional details

Browser process spawning was a little unwieldy. This applies the stranger fig pattern by:

  • writing tests forpackages/launcher/lib/launch.ts (renamed frombrowsers.ts to match its export) that focus on its side effects rather than implementation
  • extracting platform specific behavior (darwin arm64) and using template methods for the rest of the platforms
  • using the factory pattern to select which platform to create

Several of the platform classes are empty as placeholders for browser detection logic, and should be expanded as strangler fig is applied todetect anddetectByPath. Once the public interface here is strangled, we should consider whether the public interface for@packages/launcher still fits its requirements, or if there are better patterns to expose.

Steps to test

How has the user experience changed?

PR Tasks

@cacieprinscacieprinsforce-pushed thechore/launcher-launch-refactor branch from6e623b6 toc238b66CompareOctober 9, 2025 19:23
debug('launching browser %o', { browser, url })

// We shouldn't need to check this, because FoundBrowser.path is
// not optional.
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Lots of places explicitly coerce unknown POJOs toFoundBrowser, though, so it's important to keep it

import { removeDuplicateBrowsers } from '@packages/data-context/src/sources/BrowserDataSource'
import { knownBrowsers } from './known-browsers'
import * as darwinHelper from './darwin'
import * as darwinHelper from './darwinHelpers'
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

These were renamed because intellisense was complaining that

/lib/darwin/index.ts was too similar to/lib/platforms/Darwin.ts 🤷

@cypress
Copy link

cypressbot commentedOct 14, 2025
edited
Loading

cypress  Run #67450

Run Properties: status check passed Passed #67450  • git commit62ca409e7b: Merge branch 'develop' into chore/launcher-launch-refactor
Projectcypress
Branch Reviewchore/launcher-launch-refactor
Run statusstatus check passed Passed #67450
Run duration19m 31s
Commitgit commit62ca409e7b: Merge branch 'develop' into chore/launcher-launch-refactor
CommitterCacie Prins
View all properties for this run ↗︎

Test results
Tests that failed Failures0
Tests that were flaky Flaky12
Tests that did not run due to a developer annotating a test with .skip Pending1098
Tests that did not run due to a failure in a mocha hook Skipped4
Tests that passed Passing26694
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  45.48%
 Untested elements188  
 Tested elements161  
Accessibility  97.99%
 Failed rules 4 critical  8 serious  2 moderate  2 minor
 Failed elements101  

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

Reviewers

No reviews

Assignees

@cacieprinscacieprins

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@cacieprins

Comments


[8]ページ先頭

©2009-2026 Movatter.jp