Skip to content

Commit

Permalink
feat: upgrade to GitHub native dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Apr 30, 2021
1 parent 0fc3eec commit c759320
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '04:00'
timezone: Europe/Berlin
open-pull-requests-limit: 10
versioning-strategy: lockfile-only
134 changes: 134 additions & 0 deletions test/info/__snapshots__/info.test.js.snap.webpack5
@@ -0,0 +1,134 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`basic info usage gets info as json: stderr 1`] = `""`;

exports[`basic info usage gets info as json: stdout 1`] = `
"{
\\"System\\": {
\\"OS\\": \\"macOS 11.2.3\\",
\\"CPU\\": \\"(8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz\\",
\\"Memory\\": \\"86.03 MB / 8.00 GB\\"
},
\\"Binaries\\": {
\\"Node\\": {
\\"version\\": \\"14.16.0\\",
\\"path\\": \\"~/.config/nvm/14.16.0/bin/node\\"
},
\\"Yarn\\": {
\\"version\\": \\"1.17.3\\",
\\"path\\": \\"/usr/local/bin/yarn\\"
},
\\"npm\\": {
\\"version\\": \\"7.10.0\\",
\\"path\\": \\"~/.config/nvm/14.16.0/bin/npm\\"
}
},
\\"Browsers\\": {
\\"Brave Browser\\": {
\\"version\\": \\"90.1.23.73\\"
},
\\"Chrome\\": {
\\"version\\": \\"90.0.4430.93\\"
},
\\"Edge\\": {
\\"version\\": \\"90.0.818.49\\"
},
\\"Firefox Developer Edition\\": {
\\"version\\": \\"86.0\\"
},
\\"Safari\\": {
\\"version\\": \\"14.0.3\\"
}
},
\\"Global Packages\\": {
\\"webpack-cli\\": \\"4.6.0\\"
}
}"
`;

exports[`basic info usage gets info as markdown: stderr 1`] = `""`;

exports[`basic info usage gets info as markdown: stdout 1`] = `
"
## System:
- OS: osName
- CPU: cpuName
- Memory: size
## Binaries:
- Node: x.x.x - ~/.config/nvm/x.x.x/bin/node
- Yarn: x.x.x - /usr/local/bin/yarn
- npm: x.x.x - ~/.config/nvm/x.x.x/bin/npm
## Browsers:
- Brave Browser: x.x.x.73
- Chrome: x.x.x.93
- Edge: x.x.x.49
- Firefox Developer Edition: 86.0
- Safari: x.x.x
## Global Packages:
- webpack-cli: x.x.x
"
`;

exports[`basic info usage gets info without flags: stderr 1`] = `""`;

exports[`basic info usage gets info without flags: stdout 1`] = `
"
System:
OS: osName
CPU: cpuName
Memory: size
Binaries:
Node: x.x.x - ~/.config/nvm/x.x.x/bin/node
Yarn: x.x.x - /usr/local/bin/yarn
npm: x.x.x - ~/.config/nvm/x.x.x/bin/npm
Browsers:
Brave Browser: x.x.x.73
Chrome: x.x.x.93
Edge: x.x.x.49
Firefox Developer Edition: 86.0
Safari: x.x.x
Global Packages:
webpack-cli: x.x.x
"
`;

exports[`basic info usage gets more info in project root: stderr 1`] = `""`;

exports[`basic info usage gets more info in project root: stdout 1`] = `
"
System:
OS: osName
CPU: cpuName
Memory: size
Binaries:
Node: x.x.x - ~/.config/nvm/x.x.x/bin/node
Yarn: x.x.x - /usr/local/bin/yarn
npm: x.x.x - ~/.config/nvm/x.x.x/bin/npm
Browsers:
Brave Browser: x.x.x.73
Chrome: x.x.x.93
Edge: x.x.x.49
Firefox Developer Edition: 86.0
Safari: x.x.x
Monorepos:
Yarn Workspaces: x.x.x
Lerna: x.x.x
Packages:
webpack: ^x.x.x => x.x.x
webpack-bundle-analyzer: ^x.x.x => x.x.x
webpack-dev-server: ^x.x.x => x.x.x
Global Packages:
webpack-cli: x.x.x
"
`;

exports[`basic info usage shows a warning if an invalid value is supplied: stderr 1`] = `"[webpack-cli] 'unknown' is not a valid value for output"`;

exports[`basic info usage shows a warning if an invalid value is supplied: stdout 1`] = `""`;

exports[`basic info usage shows an appropriate warning on supplying unknown args: stderr 1`] = `
"[webpack-cli] Error: Unknown option '--unknown'
[webpack-cli] Run 'webpack --help' to see available commands and options"
`;

exports[`basic info usage shows an appropriate warning on supplying unknown args: stdout 1`] = `""`;

0 comments on commit c759320

Please sign in to comment.