diff --git a/packages/react-code-editor/src/components/CodeEditor/__test__/CodeEditor.test.tsx b/packages/react-code-editor/src/components/CodeEditor/__test__/CodeEditor.test.tsx
index d179e6e9467..5ef5014bcd0 100644
--- a/packages/react-code-editor/src/components/CodeEditor/__test__/CodeEditor.test.tsx
+++ b/packages/react-code-editor/src/components/CodeEditor/__test__/CodeEditor.test.tsx
@@ -1,26 +1,32 @@
-import { CodeEditor, Language } from '../CodeEditor';
import React from 'react';
-import { shallow } from 'enzyme';
+import { render } from '@testing-library/react';
+import { CodeEditor, Language } from '../CodeEditor';
-test(`CodeEditor`, () => {
- const view = shallow(
Success alert description. This should tell the user more information about the alert.
-Success alert description. This should tell the user more information about the alert.
-Success alert description. This should tell the user more information about the alert.
+{description}
+