Skip to content

Commit e2fe985

Browse files
committed
Fix tests
1 parent f5a1397 commit e2fe985

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = createConfig('jest', {
1515
moduleNameMapper: {
1616
rosie: path.resolve('./node_modules/rosie'),
1717
'^@edx/frontend-app-learning/tests$': `${path.resolve('./node_modules/@edx/frontend-app-learning/dist/testExports.js')}`,
18+
'^@src(.*)$': `${path.resolve('./node_modules/@edx/frontend-app-learning/dist/$1')}`,
1819
'^@edx/frontend-platform(.*)$': `${path.resolve('./node_modules/@edx/frontend-platform')}$1`,
1920
'^@openedx/paragon(.*)$': `${path.resolve('./node_modules/@openedx/paragon')}$1`,
2021
'^prop-types$': path.resolve('./node_modules/prop-types'),

src/features/course-player/sequence-container/SequenceContainer.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('SequenceContainer', () => {
4545
it('handles loading unit', async () => {
4646
render(<SequenceContainer {...mockData} />);
4747
expect(await screen.findByText('Loading learning sequence...')).toBeInTheDocument();
48-
// Renders navigation buttons (3 prev, bookmark, notificaitons tray).
49-
expect(screen.getAllByRole('button')).toHaveLength(3);
48+
// Renders navigation buttons (2 bookmark, notificaitons tray).
49+
expect(screen.getAllByRole('button')).toHaveLength(2);
5050

5151
loadUnit();
5252
await waitFor(() => expect(screen.queryByText('Loading learning sequence...')).not.toBeInTheDocument());

0 commit comments

Comments
 (0)