Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/AddPublishJsonOutput
- Loading branch information
Showing
465 changed files
with
25,991 additions
and
8,980 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# GitHub token with "public_repo" scope required for --create-release=github | ||
# @see https://github.com/settings/tokens | ||
GH_TOKEN=REPLACEME |
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 |
---|---|---|
|
@@ -29,3 +29,4 @@ tmp | |
coverage/ | ||
.nyc_output/ | ||
.eslintcache | ||
.env |
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ language: node_js | |
node_js: | ||
- "12" | ||
- "10" | ||
- "8" | ||
|
||
os: | ||
- linux | ||
|
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,9 +1,20 @@ | ||
"use strict"; | ||
|
||
const releases = new Map(); | ||
|
||
// keep test data isolated | ||
afterEach(() => { | ||
releases.clear(); | ||
}); | ||
|
||
const client = { | ||
repos: { | ||
createRelease: jest.fn(), | ||
createRelease: jest.fn((opts) => { | ||
releases.set(opts.name, opts); | ||
return Promise.resolve(); | ||
}), | ||
}, | ||
}; | ||
|
||
module.exports = () => client; | ||
module.exports.createGitLabClient = jest.fn(() => client); | ||
module.exports.createGitLabClient.releases = releases; |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
"use strict"; | ||
|
||
const mockHasNpmVersion = jest.fn(() => true); | ||
const mockMakePredicate = jest.fn(() => range => mockHasNpmVersion(range)); | ||
|
||
module.exports = mockHasNpmVersion; | ||
module.exports.makePredicate = mockMakePredicate; | ||
module.exports.hasNpmVersion = mockHasNpmVersion; |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
"use strict"; | ||
|
||
const chalk = require("chalk"); | ||
const multiLineTrimRight = require("@lerna-test/multi-line-trim-right"); | ||
const { multiLineTrimRight } = require("@lerna-test/multi-line-trim-right"); | ||
|
||
// keep snapshots stable cross-platform | ||
chalk.enabled = false; | ||
chalk.level = 0; | ||
|
||
// @lerna/output is just a wrapper around console.log | ||
const mockOutput = jest.fn(); | ||
|
||
function logged() { | ||
return mockOutput.mock.calls.map(args => multiLineTrimRight(args[0])).join("\n"); | ||
return mockOutput.mock.calls.map((args) => multiLineTrimRight(args[0])).join("\n"); | ||
} | ||
|
||
module.exports = mockOutput; | ||
module.exports.logged = logged; | ||
module.exports.output = mockOutput; | ||
module.exports.output.logged = logged; |
Oops, something went wrong.