-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
|
@@ -34,14 +34,16 @@ | |||
"peerDependencies": { | |||
"@threlte/core": ">=7", | |||
"@threlte/extras": ">=8", | |||
"svelte": ">=4" | |||
"svelte": ">=4", | |||
"@testing-library/svelte": "*" |
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.
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", |
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.
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' |
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.
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' |
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.
Todo: update readme
WIP companion PR to testing-library/svelte-testing-library#391