-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
TS errors with slots or/and props in Vue 3 #29799
Comments
@florianFM What changed in between not seeing this and seeing this? Did you update Cypress versions? |
@jennifer-shehane I've backed up my package.json more than 4 months ago and the error is still here... So I really don't know what triggers that |
Ok I might have been wrong about the slots stuff. After other tests on my end it looks like it's about default values on props. Every time I try to add a props that has a default value (or a Boolean), it triggers an error |
I even tried declaring it with something like that and it's still doesn't work export interface Props {
type: 'warning' | 'error' | 'success' | 'info';
title?: string;
content?: string;
noIcon?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
type: 'info',
noIcon: false,
}); |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior
Since a few days we detected "errors" when we are using slots in component tests. It was not here before. The test is working but it's annoying to have this.
Desired behavior
No response
Test code to reproduce
FmBanner.cy.ts
FmBanner.vue
Cypress Version
13.13.0
Node version
v18.18.1
Operating System
macOS 14.5
Debug Logs
No response
Other
Full error:
The text was updated successfully, but these errors were encountered: