Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for installing private packages requiring authentication
- Loading branch information
1 parent
f54d8b6
commit c9978b7
Showing
6 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
'@types/lodash': { | ||
registry: 'https://registry.yarnpkg.com/', | ||
token: 'abc123' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
HTTP/1.1 401 OK | ||
Date: Fri, 14 Oct 2016 21:05:22 GMT | ||
Content-Type: application/json | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
|
||
49 | ||
{"error":"unauthorized","reason":"token missing"} |
2 changes: 2 additions & 0 deletions
2
__tests__/fixtures/install/install-from-authed-private-registry/.npmrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//registry.yarnpkg.com/:_authToken=abc123 | ||
@types:registry=https://registry.yarnpkg.com/ |
5 changes: 5 additions & 0 deletions
5
__tests__/fixtures/install/install-from-authed-private-registry/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"@types/lodash": "4.14.37" | ||
} | ||
} |