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 svelte-testing-library as a peer dep to share plugin and cleanup #20

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcous
Copy link
Collaborator

@mcous mcous commented Jun 30, 2024

Copy link

changeset-bot bot commented Jun 30, 2024

⚠️ No Changeset found

Latest commit: 858d3ca

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

@@ -34,14 +34,16 @@
"peerDependencies": {
"@threlte/core": ">=7",
"@threlte/extras": ">=8",
"svelte": ">=4"
"svelte": ">=4",
"@testing-library/svelte": "*"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Todo:

  • add specific range
  • remove plugin export

},
"devDependencies": {
"@changesets/cli": "^2.27.5",
"@sveltejs/adapter-auto": "^3.2.1",
"@sveltejs/kit": "^2.5.10",
"@sveltejs/package": "^2.3.1",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@testing-library/svelte": "github:testing-library/svelte-testing-library#feat-core",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Todo: add specific version

@@ -17,4 +17,5 @@ if (typeof window !== 'undefined') {
console.warn = warn
}

export { act, cleanup, render } from './pure'
export { act, render } from './pure'
export { cleanup } from '@testing-library/svelte/core'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This re-export might now technically be needed, but I worry it would be confusing to omit it

@@ -1,10 +1,10 @@
import { defineConfig } from 'vite'
import { sveltekit } from '@sveltejs/kit/vite'
import { threlteTesting } from './src/lib/plugin'
import { svelteTesting } from '@testing-library/svelte/vite'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Todo: update readme

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