jd-opensource / jd-opensource/taro-ui
taro-ui 下面的 test怎么运行
Open
bug
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
**问题描述**
在packages/taro-ui 目录下面执行npm run test 会报错:
Support for the experimental syntax 'jsx' isn't currently enabled (7:37):
5 | describe('AtTextarea Snap', () => {
6 | it('render initial AtTextarea', () => {
> 7 | const componet = renderToString()
| ^
8 | expect(componet).toMatchSnapshot()
9 | })
想问一下正确的 test运行步骤是什么样的呢
**复现步骤**
```js
// 这里可以贴代码
```
**期望行为**
**报错信息**
**系统信息**
**补充信息**
Contributor guide
Assessment
This issue has not been assessed yet.