-
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
Ensure original named slot tags are retained when not using shadow root. #1
Conversation
…ing shadow root. Only "unwrap" (i.e. from the host tag) when in the default slot. Including ignore of .idea/ files (JetBrains) and enforcing repo-specific whitespace rules (differs from my specific IDE settings)
Any chance you can remove the Otherwise looks good. The tests use snowpack, which has since died. The only way to get the tests working for me is to do
It sounds like svelte 4 may make svelte-tag obsolete, otherwise I'd look to update the test runner. |
Oh shoot! That's my fault, sorry about that. Comedy of errors. I ended up using And yeah just tried that (v14) and same error. I'm convinced it's an issue with the package and the fact that I'm on WSL2. Trying to launch a full blown GUI-based browser like that is a bit Rube Goldbergian IMHO. I wonder if Vitest would be better/faster at this (probably worth a shot later).
Maybe! I'm not sure. The reason I say that is because so far, Plus the upside to |
p.s. on the topic of unit testing, I've got a single experimental test up and running using
Works on my machine locally as well as in Github's CI/Actions, so... should make it far easier for me to contribute and iterate since I can run the tests locally. Edit: Thankfully it appears shadow DOM is working as expected! 👍 |
Alright, converted the repo over to using Vitest, see crisward/svelte-tag#14 😅 Determined to get that up and running so I can start cranking through some of the other issues in the repo (including the one relating to nested slots... got some ideas...). |
Closing since crisward/svelte-tag#13 is merged. |
Setup to run unit tests.