feat: migrate enzyme to edx react-unit-test-utils

This commit is contained in:
Syed Ali Abbas Zaidi
2024-01-25 02:51:53 +05:00
committed by GitHub
parent 1bc4e51c22
commit dcdaace08d
108 changed files with 1155 additions and 1046 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { shallow } from 'enzyme';
import { shallow } from '@edx/react-unit-test-utils';
import hooks from './hooks';
import { formatMessage } from '../../../testUtils';
@@ -31,6 +31,6 @@ describe('SourceCodeModal', () => {
value: mockvalue,
ref: mockref,
});
expect(shallow(<SourceCodeModal {...props} />)).toMatchSnapshot();
expect(shallow(<SourceCodeModal {...props} />).snapshot).toMatchSnapshot();
});
});