Skip to content

Commit

Permalink
fix: add openedx folder to ignore patters, remove unnecessary imports…
Browse files Browse the repository at this point in the history
… and add required config value
  • Loading branch information
andrey-canon committed Nov 26, 2024
1 parent e758243 commit 0431b26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ module.exports = createConfig('jest', {
],
testTimeout: 20000,
});

module.exports.transformIgnorePatterns = [
'/node_modules/(?!(@edx|@openedx))',
];
2 changes: 1 addition & 1 deletion src/react/AppProvider.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createStore } from 'redux';
import { mount } from 'enzyme';

Check failure on line 3 in src/react/AppProvider.test.jsx

View workflow job for this annotation

GitHub Actions / tests

'mount' is defined but never used
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';

Check failure on line 7 in src/react/AppProvider.test.jsx

View workflow job for this annotation

GitHub Actions / tests

'Router' is defined but never used
import AppProvider from './AppProvider';
Expand All @@ -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',
Expand Down
1 change: 0 additions & 1 deletion src/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 0431b26

Please sign in to comment.