-
-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(package): Update cosmiconfig to version 5.0.2 (#444)
* fix(package): update cosmiconfig to version 5.0.2 * chore(package): update lockfile * fix: Migrate to cosmiconfig v5 Closes #441
- Loading branch information
1 parent
9823d26
commit 5731c37
Showing
5 changed files
with
22 additions
and
24 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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
const actual = require.requireActual('cosmiconfig') | ||
const mock = jest.genMockFromModule('cosmiconfig') | ||
|
||
function cosmiconfig(name, options) { | ||
if (options.configPath) { | ||
return actual(name, options) | ||
} | ||
|
||
return mock(name, options) | ||
return actual(name, options) | ||
} | ||
|
||
module.exports = jest.fn(cosmiconfig) |
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 |
---|---|---|
|
@@ -1149,14 +1149,13 @@ [email protected], core-util-is@~1.0.0: | |
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" | ||
|
||
cosmiconfig@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-4.0.0.tgz#760391549580bbd2df1e562bc177b13c290972dc" | ||
cosmiconfig@^5.0.2: | ||
version "5.0.2" | ||
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.2.tgz#03f8965ae4675317a0015b4a5a48a470d9baeada" | ||
dependencies: | ||
is-directory "^0.3.1" | ||
js-yaml "^3.9.0" | ||
parse-json "^4.0.0" | ||
require-from-string "^2.0.1" | ||
|
||
cross-spawn@^5.0.1, cross-spawn@^5.1.0: | ||
version "5.1.0" | ||
|
@@ -4049,10 +4048,6 @@ require-directory@^2.1.1: | |
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" | ||
|
||
require-from-string@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.1.tgz#c545233e9d7da6616e9d59adfb39fc9f588676ff" | ||
|
||
require-main-filename@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" | ||
|