diff --git a/jest.config.js b/jest.config.js index dd1d28b64..39c61866a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,3 +6,7 @@ module.exports = createConfig('jest', { ], testTimeout: 20000, }); + +module.exports.transformIgnorePatterns = [ + '/node_modules/(?!(@edx|@openedx))', +]; diff --git a/src/react/AppProvider.test.jsx b/src/react/AppProvider.test.jsx index 2d8e5334b..7e637dcf0 100644 --- a/src/react/AppProvider.test.jsx +++ b/src/react/AppProvider.test.jsx @@ -3,7 +3,6 @@ import { createStore } from 'redux'; import { mount } from 'enzyme'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import '@testing-library/jest-dom/extend-expect'; import { BrowserRouter as Router } from 'react-router-dom'; import AppProvider from './AppProvider'; @@ -28,6 +27,7 @@ jest.mock('../config', () => ({ ...jest.requireActual('../config'), getConfig: jest.fn().mockReturnValue({ BASE_URL: 'localhost:8080', + PUBLIC_PATH: '/', LMS_BASE_URL: 'localhost:18000', LOGIN_URL: 'localhost:18000/login', LOGOUT_URL: 'localhost:18000/logout', diff --git a/src/react/index.js b/src/react/index.js index 315f77a4f..aa7493594 100644 --- a/src/react/index.js +++ b/src/react/index.js @@ -15,4 +15,3 @@ export { default as LoginRedirect } from './LoginRedirect'; export { default as PageWrap } from './PageWrap'; export { useAppEvent, useParagonTheme } from './hooks'; export { paragonThemeActions } from './reducers'; -export { useAppEvent } from './hooks';