We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4772a6a commit 2bff58dCopy full SHA for 2bff58d
1 file changed
core/internal/apply/npm_user_prefix_test.go
@@ -64,7 +64,6 @@ func TestEnsureUnixUserBinOnPathWritesMarkedBlock(t *testing.T) {
64
}
65
home := t.TempDir()
66
t.Setenv("HOME", home)
67
- profile := filepath.Join(home, ".zshrc")
68
binDir := filepath.Join(home, ".npm-global", "bin")
69
if err := os.MkdirAll(binDir, 0o755); err != nil {
70
t.Fatal(err)
@@ -73,6 +72,7 @@ func TestEnsureUnixUserBinOnPathWritesMarkedBlock(t *testing.T) {
73
72
if err := ensureUnixUserBinOnPath(binDir); err != nil {
74
75
+ profile := pickShellProfile(shellProfileCandidates())
76
data, err := os.ReadFile(profile)
77
if err != nil {
78
0 commit comments