We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
主要代码:
useEffect(() => { setTitle('主页'); }, []); useEffect(() => { setIsLoaded(false); }, [dateRange])
jest代码:
const component = renderIntoDocument(<homePage/>); expect(component).toMatchSnapshot();
发现只要写多个useEffect, 然后进行单元测试就会报错,错误信息是ReferenceError: Taro is not defined
useEffect
ReferenceError: Taro is not defined
版本:
"nervjs": "^1.4.0", "nerv-test-utils": "^1.4.3", "@tarojs/taro": "1.3.14",
请问这个问题如何解决呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
主要代码:
jest代码:
发现只要写多个
useEffect
, 然后进行单元测试就会报错,错误信息是ReferenceError: Taro is not defined
版本:
请问这个问题如何解决呢?
The text was updated successfully, but these errors were encountered: