jd-opensource / jd-opensource/taro-ui

taro-ui 下面的 test怎么运行

Open
#1,745 1 comment 0 reactions 1 assignee Claimed by @robinv8 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.