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

Add tests for optional props on Svelte components #344

Merged
merged 3 commits into from
Jul 27, 2022

Conversation

Princesseuh
Copy link
Member

Changes

Requires withastro/astro#3993 to be merged in and released before the tests pass

Add some tests that we properly support optional props for Svelte components

Testing

It's tests

Docs

N/A

@Princesseuh Princesseuh requested a review from a team as a code owner July 20, 2022 20:56
@changeset-bot
Copy link

changeset-bot bot commented Jul 20, 2022

⚠️ No Changeset found

Latest commit: ab3b6ce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@@ -67,7 +67,7 @@ describe('TypeScript Plugin#HoverProvider', () => {

expect(hoverInfo).to.deep.equal(<Hover>{
contents:
'```typescript\n(alias) function Sveltecomment(_props: typeof Props): any\nimport Sveltecomment\n```\n---\nMy super Svelte component!',
'```typescript\n(alias) function Sveltecomment(_props: typeof Component.props): any\nimport Sveltecomment\n```\n---\nMy super Svelte component!',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor update because shape of output changed here

@Princesseuh Princesseuh merged commit a1dcd41 into main Jul 27, 2022
@Princesseuh Princesseuh deleted the tests-svelte-optional-props branch July 27, 2022 13:13
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

Successfully merging this pull request may close these issues.

1 participant