-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Merge pull request #343 from storyblok/feature/migration-fields
Feature Migration Fields
- Loading branch information
Showing
19 changed files
with
3,269 additions
and
1,907 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const fs = jest.genMockFromModule('fs-extra') | ||
|
||
let mockFiles = Object.create(null) | ||
|
||
// used by pull-components.spec.js | ||
const pathExists = jest.fn((key) => { | ||
return !!mockFiles[key] | ||
}) | ||
|
||
const outputFile = jest.fn((path, data, fn) => { | ||
mockFiles[path] = data | ||
return Promise.resolve(true) | ||
}) | ||
|
||
const __clearMockFiles = () => { | ||
mockFiles = Object.create(null) | ||
} | ||
|
||
const __setMockFiles = (mock) => { | ||
mockFiles = mock | ||
} | ||
|
||
fs.pathExists = pathExists | ||
|
||
fs.outputFile = outputFile | ||
|
||
fs.__clearMockFiles = __clearMockFiles | ||
|
||
fs.__setMockFiles = __setMockFiles | ||
|
||
module.exports = fs |
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 |
---|---|---|
|
@@ -21,34 +21,35 @@ | |
"author": "Dominik Angerer <[email protected]>, Alexander Feiglstorfer <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"chalk": "^1.1.3", | ||
"clear": "0.0.1", | ||
"commander": "^4.0.0", | ||
"figlet": "^1.2.0", | ||
"axios": "^0.19.2", | ||
"chalk": "^4.1.0", | ||
"clear": "0.1.0", | ||
"commander": "^5.1.0", | ||
"figlet": "^1.4.0", | ||
"fs-extra": "^9.0.1", | ||
"github-download": "^0.5.0", | ||
"inquirer": "^3.0.1", | ||
"minimist": "^1.2.0", | ||
"inquirer": "^7.2.0", | ||
"lodash": "^4.17.15", | ||
"netrc": "0.1.4", | ||
"opn": "^5.1.0", | ||
"on-change": "^2.0.1", | ||
"opn": "^6.0.0", | ||
"p-series": "^2.1.0", | ||
"path": "^0.12.7", | ||
"storyblok-js-client": "^2.0.10", | ||
"unirest": "^0.5.1", | ||
"update-notifier": "^4.0.0" | ||
"storyblok-js-client": "^2.5.0", | ||
"update-notifier": "^4.1.0" | ||
}, | ||
"engines": { | ||
"node": ">=9.11.0" | ||
"node": ">=10.0.0" | ||
}, | ||
"devDependencies": { | ||
"concat-stream": "^2.0.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^23.0.2", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint": "^7.2.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.21.2", | ||
"eslint-plugin-jest": "^23.13.2", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"jest": "^24.9.0" | ||
"jest": "^26.0.1" | ||
} | ||
} |
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
Oops, something went wrong.