import TextArea from '../textarea'; import Icon from '../../icons/index'; import { BASE_CLASS_PREFIX } from '../../../semi-foundation/base/constants'; import GraphemeSplitter from 'grapheme-splitter'; import { isString } from 'lodash'; function getValueLength(str) { if (isString(str)) { const splitter = new GraphemeSplitter(); return splitter.countGraphemes(str); } else { return -1; } } describe('TextArea', () => { it('TextArea with custom className & style', () => { const wrapper = mount(