Skip to content

Commit 6a1685b

Browse files
sunnylqmcodex
andcommitted
test(auto-update): isolate default manager detection
Keep the fallback-to-npm assertion independent from a runner's npm_config_user_agent. This matches the test's custom-prefix scenario while preserving runtime package-manager detection. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent f8b4c72 commit 6a1685b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/auto-update.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ describe('auto update package-manager detection', () => {
6767
expect(
6868
detectGlobalPackageManager({
6969
packageRoot: '/custom/prefix/lib/node_modules/react-native-update-cli',
70+
env: {},
7071
}),
7172
).toBe('npm');
7273
});

0 commit comments

Comments
 (0)