-
Notifications
You must be signed in to change notification settings - Fork 433
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
Update deps for Vue 2.7 #413
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far
@@ -5,6 +5,8 @@ import HelloWorld from '../HelloWorld.vue' | |||
|
|||
describe('HelloWorld', () => { | |||
it('renders properly', () => { | |||
// TODO: https://github.com/vuejs/vue-test-utils/issues/2087 | |||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should merge like this, so we'll have to wait for the fix (but it may take a long time as VTU v1 is not really active).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, you're right.
Because there are still lists left to complete.
so we'll have to wait for the fix ......
For that matter, the problem actually existed before I modified this project.
I'm also wondering how he (Haoqun Jiang) avoided this problem, after all, the last version already depends on Vue 2.7.x already!
How about we ask "Haoqun Jiang" for advice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I have no idea how to fix that type error…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A workaround was proposed in the issue I opened previously: vuejs/vue-test-utils#2026 (comment)
But I'm no expert on TypeScript, so I don't know if that's the right fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH.
It would be best to have vue-test-utils aligned with "Vue 2.7.16".
But that repository is not very active.
I've also forked vue-test-utils aligned to try to fix this, which is a bit of a challenge.
A more practical solution for now is to create a corresponding Typescript shim in the output template,like vuejs/vue-test-utils#2026 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cexbrayat Hi!
Excuse me!
Could you please review the latest submission and provide feedback on whether it is an acceptable solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine by me. Obviously it would be better to open a PR on VTU to fix it properly and get a new release, but I'm not sure many people will generate a new Vue 2 project with create-vue, so that's probably OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obviously it would be better to open a PR on VTU to fix it properly and get a new
release,
Since the VTU author is currently focusing on "Vue 3", I can follow up in the future when this issue is fixed.
Possibly (vuejs/vue-test-utils#2087 (comment)) I'll open a PR
For now. I think this solution is sufficient
|
@sodatea! |
9ec126d
to
5a02fc8
Compare
Hi everyone. Long time no see! It looks like the master plan is complete. Would you mind reviewing it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested it, but LGTM at first glance.
I think we should also deprecate this version of create-vue as Vue 2 is now EOL to discourage its usage.
I have executed the test script and he passed all of it
let's we try npm-deprecate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
closed: #408 #185
TODO List
Output Template
pnpm
to v8vue
to v2.7.16node
to 18+vite
to v5typescript
to v5cypress
to v13vitest
to v1@vue/test-utils@v1
work with v2.7.16@cypress/vue2
work with v2.7.16Self