You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tests using bun, they fail with the following error:
if (!(globalThis.chrome && globalThis.chrome.runtime && globalThis.chrome.runtime.id)) {
throw new Error("This script should only be loaded in a browser extension.");
error: This script should only be loaded in a browser extension.
However when using any other package manager like pnpm, the tests pass
Describe the bug
When running tests using
bun
, they fail with the following error:However when using any other package manager like
pnpm
, the tests passReproduction
bun-test.zip
Steps to reproduce
Run
bun install
thenbun test
System Info
System: OS: macOS 15.0.1 CPU: (11) arm64 Apple M3 Pro Memory: 68.67 MB / 18.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.17.0 - /etc/profiles/per-user/kelvinkipruto/bin/node npm: 10.8.2 - /etc/profiles/per-user/kelvinkipruto/bin/npm pnpm: 9.10.0 - /etc/profiles/per-user/kelvinkipruto/bin/pnpm bun: 1.1.29 - /etc/profiles/per-user/kelvinkipruto/bin/bun Browsers: Chrome: 130.0.6723.117 Safari: 18.0.1 npmPackages: wxt: ^0.19.13 => 0.19.13
Used Package Manager
bun
Validations
The text was updated successfully, but these errors were encountered: