Skip to content

Commit 4d54ea0

Browse files
committed
Emit error on fetch
1 parent 60f1196 commit 4d54ea0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/happy-pillows-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codeshift/cli': patch
3+
---
4+
5+
Emit the full stack trace when a fetch package + eval config error occurs

packages/cli/src/list.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ describe('list', () => {
1212

1313
(PluginManager as jest.Mock).mockImplementation(() => ({
1414
install: jest.fn().mockResolvedValue(undefined),
15+
getInfo: jest.fn().mockReturnValue({ location: 'path/to/config' }),
1516
require: jest.fn().mockImplementation(() => ({
1617
transforms: {
1718
'18.0.0': 'path/to/18.js',
@@ -115,6 +116,7 @@ ${chalk.bold('@foo/bar')}
115116
throw new Error('404 not found');
116117
}
117118
}),
119+
getInfo: jest.fn().mockReturnValue({ location: 'path/to/config' }),
118120
require: jest.fn().mockImplementation(() => ({
119121
transforms: {
120122
'18.0.0': 'path/to/18.js',

0 commit comments

Comments
 (0)