Skip to content

Commit

Permalink
Revert "test(notification): unblock unit test failure of rn url polyf…
Browse files Browse the repository at this point in the history
…ill"

This reverts commit dbacebc.
  • Loading branch information
AllanZhengYP committed May 26, 2023
1 parent ddd8ea7 commit 2f79688
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jest.mock('react-native', () => ({
removeEventListener: jest.fn(),
},
}));
jest.mock('react-native-url-polyfill', () => {
return {
setupURLPolyfill: jest.fn(),
};
});
jest.mock('@aws-amplify/core');

const mockAddEventListener = AppState.addEventListener as jest.Mock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jest.mock('react-native', () => ({
addListener: mockAddListener,
})),
}));
jest.mock('react-native-url-polyfill', () => {
return {
setupURLPolyfill: jest.fn(),
};
});
jest.mock('@aws-amplify/core');
jest.mock('@aws-amplify/rtn-push-notification', () => ({
AmplifyRTNPushNotification: {
Expand Down
5 changes: 0 additions & 5 deletions packages/notifications/jest.native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ module.exports = {
functions: 95,
},
},
// Fix react native url polyfill transform issue of import statement.
// See: https://thymikee.github.io/jest-preset-angular/docs/11.0/guides/troubleshooting/#unexpected-token-importexportother
transformIgnorePatterns: [
'node_modules/(?!react-native-url-polyfill|@react-native|react-native)',
],
};

0 comments on commit 2f79688

Please sign in to comment.