Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cross-env #100

Merged
merged 2 commits into from
Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"browserslist": "^4.7.2",
"concurrently": "^5.0.0",
"cosmiconfig": "^5.2.1",
"cross-env": "^5.2.1",
"cross-env": "^6.0.3",
"cross-spawn": "^7.0.1",
"doctoc": "^1.4.0",
"eslint": "^6.6.0",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ test('resolveKcdScripts resolves to kcd-scripts if not in the kcd-scripts packag

test(`resolveBin resolves to the full path when it's not in $PATH`, () => {
expect(require('../utils').resolveBin('cross-env')).toBe(
require.resolve('cross-env/dist/bin/cross-env').replace(process.cwd(), '.'),
require.resolve('cross-env/src/bin/cross-env').replace(process.cwd(), '.'),
)
})

test(`resolveBin resolves to the binary if it's in $PATH`, () => {
whichSyncMock.mockImplementationOnce(() =>
require.resolve('cross-env/dist/bin/cross-env').replace(process.cwd(), '.'),
require.resolve('cross-env/src/bin/cross-env').replace(process.cwd(), '.'),
)
expect(require('../utils').resolveBin('cross-env')).toBe('cross-env')
expect(whichSyncMock).toHaveBeenCalledTimes(1)
Expand Down