Skip to content

Commit 82143bf

Browse files
fix: Add defaultHostname to prevent ENOTFOUND undefined error in tests
1 parent 70f25e4 commit 82143bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/contentstack-core.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ describe('contentstackCore', () => {
152152
it('should call the onError function when an error occurs', async () => {
153153
const onError = jest.fn();
154154
const options = {
155+
defaultHostname: 'cdn.contentstack.io',
155156
onError,
156157
};
157158

0 commit comments

Comments
 (0)