Skip to content

Commit 2bff58d

Browse files
committed
Fix Unix npm prefix test profile lookup
1 parent 4772a6a commit 2bff58d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/internal/apply/npm_user_prefix_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func TestEnsureUnixUserBinOnPathWritesMarkedBlock(t *testing.T) {
6464
}
6565
home := t.TempDir()
6666
t.Setenv("HOME", home)
67-
profile := filepath.Join(home, ".zshrc")
6867
binDir := filepath.Join(home, ".npm-global", "bin")
6968
if err := os.MkdirAll(binDir, 0o755); err != nil {
7069
t.Fatal(err)
@@ -73,6 +72,7 @@ func TestEnsureUnixUserBinOnPathWritesMarkedBlock(t *testing.T) {
7372
if err := ensureUnixUserBinOnPath(binDir); err != nil {
7473
t.Fatal(err)
7574
}
75+
profile := pickShellProfile(shellProfileCandidates())
7676
data, err := os.ReadFile(profile)
7777
if err != nil {
7878
t.Fatal(err)

0 commit comments

Comments
 (0)