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 harness to npm package #5397

Closed
Christian24 opened this issue Jan 18, 2024 · 2 comments · Fixed by #5399
Closed

Add harness to npm package #5397

Christian24 opened this issue Jan 18, 2024 · 2 comments · Fixed by #5399
Assignees

Comments

@Christian24
Copy link
Contributor

Description

Hi,
I am currently working on a Lit integration for Tanstack Form. I am currently in the process of writing tests and sadly there is no good framework for writing web component tests.

I have opened a couple testing library PRs but they haven't been merged in ages: testing-library/user-event#1033

Hence, I am looking for a different way to simulate input in my tests. Since I am using Material Web for components I thought maybe I could use the Harness: https://github.com/material-components/material-web/blob/main/testing/harness.ts Sadly, it seems harness is not part of the npm package however.

Is there a reason for this? Angular Material does provide component harnesses and I would welcome if Material web did too.

@asyncLiz
Copy link
Collaborator

Uh oh! This looks like an oversight.

We do ship per-component harnesses (like @material/web/button/harness.js), but it looks like we're excluding the testing folder which it needs 😬

@Christian24
Copy link
Contributor Author

Oh! I opened a PR that should fix this then @asyncLiz :)

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 a pull request may close this issue.

2 participants