Skip to content

test: skip yarn package manager test if not present#2397

Open
suveshmoza wants to merge 1 commit into
wxt-dev:mainfrom
suveshmoza:test/skip-yarn-test-if-not-present
Open

test: skip yarn package manager test if not present#2397
suveshmoza wants to merge 1 commit into
wxt-dev:mainfrom
suveshmoza:test/skip-yarn-test-if-not-present

Conversation

@suveshmoza
Copy link
Copy Markdown
Contributor

Overview

  • Skips yarn package manager test when yarn is not present.
  • Added isYarnInstalled util to check yarn presence.

Manual Testing

  1. Without yarn installed, run bun run --filter wxt test yarn
wxt test $ buildc --deps-only -- vitest
│ [5 lines elided]
│ 
│  RUN  v4.1.5 /Users/suveshmoza/oss/wxt/packages/wxt
│ 
│  ↓ src/core/package-managers/__tests__/yarn.test.ts (2 tests | 2 skipped)
│ 
│  Test Files  1 skipped (1)
│       Tests  2 skipped (2)
│    Start at  15:49:37
│    Duration  118ms (transform 10ms, setup 10ms, import 13ms, tests 0ms, environment 0ms)
└─ Done in 470 ms
  1. With yarn installed, run bun run --filter wxt test yarn
wxt test $ buildc --deps-only -- vitest
│ [5 lines elided]
│ 
│  RUN  v4.1.5 /Users/suveshmoza/oss/wxt/packages/wxt
│ 
│  ✓ src/core/package-managers/__tests__/yarn.test.ts (2 tests) 246ms
│ 
│  Test Files  1 passed (1)
│       Tests  2 passed (2)
│    Start at  15:50:48
│    Duration  852ms (transform 10ms, setup 10ms, import 501ms, tests 246ms, environment 0ms)
└─ Done in 1.16 s

This PR closes #2371

@suveshmoza suveshmoza requested a review from aklinker1 as a code owner May 29, 2026 10:22
@netlify
Copy link
Copy Markdown

netlify Bot commented May 29, 2026

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 5871476
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a1968f58a0220000859fbc3
😎 Deploy Preview https://deploy-preview-2397--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 tests for yarn doesn't pass on windows by default

1 participant