-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change let to const Co-Authored by Thakur Karthik<[email protected]>
- Loading branch information
1 parent
ea6bd13
commit e771e33
Showing
6 changed files
with
36 additions
and
5 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,18 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`mevn info 1`] = ` | ||
" | ||
Environment Info: | ||
System: | ||
OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo) | ||
CPU: (2) x64 Intel(R) Pentium(R) CPU G2020 @ 2.90GHz | ||
Binaries: | ||
Node: 12.8.0 - /usr/local/bin/node | ||
Yarn: 1.13.0 - /usr/local/bin/yarn | ||
npm: 6.13.1 - /usr/local/bin/npm | ||
Browsers: | ||
Chrome: 79.0.3945.88 | ||
Firefox: 71.0 | ||
" | ||
`; |
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 @@ | ||
'use strict'; | ||
|
||
import { run } from '../../jest/helpers'; | ||
|
||
test('mevn info', async () => { | ||
const { stdout } = await run(['info']); | ||
expect(stdout).toMatchSnapshot(); | ||
}); |
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,8 +1,13 @@ | ||
'use strict'; | ||
|
||
import 'babel-polyfill'; | ||
import execa from 'execa'; | ||
import path from 'path'; | ||
|
||
const CLI_PATH = path.resolve(process.cwd(), 'bin', 'mevn.js'); | ||
|
||
// sync version | ||
export const run = args => execa.sync(CLI_PATH, args); | ||
|
||
// async version | ||
export const runAsync = async args => await execa(CLI_PATH, args); |
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