Skip to content
New issue

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

TypeScript 模板默认单元测试报错 #28

Closed
pangxieju opened this issue Jan 14, 2022 · 4 comments
Closed

TypeScript 模板默认单元测试报错 #28

pangxieju opened this issue Jan 14, 2022 · 4 comments

Comments

@pangxieju
Copy link

步骤:
1、npm init vue@next 安装脚手架选择 TypeScript;(不设置 TypeScript 模板测试没有报错)
2、运行 npm run test:unit

[vite] Internal server error: Cannot read property 'uid' of undefined
Plugin: vite:import-analysis
File: /Users/xxxx/projects/temp/vue-next/src/components/__tests__/HelloWorld.spec.ts
@haoqunjiang
Copy link
Member

Duplicate of #24

@haoqunjiang haoqunjiang marked this as a duplicate of #24 Jan 14, 2022
@pangxieju
Copy link
Author

有什么临时解决方案吗?

@haoqunjiang
Copy link
Member

Fixed in Cypress 9.3.0

@pangxieju
Copy link
Author

 npm run test:unit

> vue-project@0.0.0 test:unit
> cypress open-ct

env: node\r: No such file or directory

Cypress 9.3.0 版本还不行

cypress-io/cypress#19747
Cypress 9.3.1 npm 还没推上去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants