summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-01 18:17:17 -0400
committerGitHub <noreply@github.com>2024-07-01 18:17:17 -0400
commit6f30ef88a24e4c463d26c34f25b024fb48f3aea2 (patch)
tree357632b15f66281882f43a29647313e5ca33edc5 /tests/specs
parentb0cd43b5f3d4af8a6dca9d7a3fbeb281a9c39c19 (diff)
fix(windows): check USERPROFILE env var for finding home directory (#24384)
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/npm/npmrc_homedir/__test__.jsonc4
-rw-r--r--tests/specs/npm/npmrc_not_next_to_package_json/__test__.jsonc3
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/specs/npm/npmrc_homedir/__test__.jsonc b/tests/specs/npm/npmrc_homedir/__test__.jsonc
index 26fce7fd8..fa993901b 100644
--- a/tests/specs/npm/npmrc_homedir/__test__.jsonc
+++ b/tests/specs/npm/npmrc_homedir/__test__.jsonc
@@ -1,9 +1,9 @@
{
- "if": "unix",
"tempDir": true,
"envs": {
"DENO_FUTURE": "1",
- "HOME": "$PWD/../"
+ "HOME": "$PWD/../",
+ "USERPROFILE": "$PWD\\..\\"
},
"cwd": "subdir",
"args": "install",
diff --git a/tests/specs/npm/npmrc_not_next_to_package_json/__test__.jsonc b/tests/specs/npm/npmrc_not_next_to_package_json/__test__.jsonc
index fa545c290..8ba9ef00c 100644
--- a/tests/specs/npm/npmrc_not_next_to_package_json/__test__.jsonc
+++ b/tests/specs/npm/npmrc_not_next_to_package_json/__test__.jsonc
@@ -1,6 +1,7 @@
{
"envs": {
- "DENO_FUTURE": "1"
+ "DENO_FUTURE": "1",
+ "USERPROFILE": "$DENO_DIR"
},
"tempDir": true,
"args": "install -A -L debug",