Open florianFM opened 2 months ago
@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,
});
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: