-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
jest单元格测试报错 #1229
Comments
此文件当前代码并无这种用法。你是自己添加的代码吗? |
.env.preprod文件里面的代码是这样的: |
说的是你的src/utils/index.ts第六行 |
问题就出在第六行,这种写法没有通过测试,错误提示已经说得很明白了 |
我知道是这种写法的问题,但是我们获取环境变量不就是通过:import.meta.env.xx来的吧,是jest不支持import.meta,还是什么原因呢 |
这篇文章看了的,说是jest暂时不支持,不过还是感谢你 |
能问下,这个框架的jest如何使用么 |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
我这边执行单元格报了如下的错误:
The text was updated successfully, but these errors were encountered: