Commit 2afa0ef7 authored by tom's avatar tom

disable render ReactAce in tests

parent 284bfbc3
......@@ -16,6 +16,11 @@ const CodeEditorBase = chakra(({ id, value, className }: Props) => {
const theme = useColorModeValue('tomorrow', 'tomorrow_night');
// eslint-disable-next-line no-restricted-properties
if (process.env.NEXT_PUBLIC_APP_ENV === 'testing') {
return <chakra.div className={ className }>CodeEditorBase</chakra.div>;
}
return (
<AceEditor
className={ className }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment