Skip to content

Commit

Permalink
feat: update cross-env (#100)
Browse files Browse the repository at this point in the history
* Update dependencies

* Fix tests
  • Loading branch information
MichaelDeBoey authored and kentcdodds committed Oct 30, 2019
1 parent e9f25ae commit 4d12c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 4d12c54

Please sign in to comment.