-
Notifications
You must be signed in to change notification settings - Fork 64
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
docs: add example on how to use testing-library with typescript #990
base: master
Are you sure you want to change the base?
docs: add example on how to use testing-library with typescript #990
Conversation
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.
Does this example really work? Because I don't see testplane config and open url in test example. Looks like it should not work. Can we fix it?
@@ -0,0 +1,20 @@ | |||
{ | |||
"name": "m-t-l-e", |
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.
What does it mean? Why not just use folder name?
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" |
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.
maybe we should add a testplane launch here?
@@ -0,0 +1,16 @@ | |||
import type {} from "testplane"; |
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.
What is it for? Mistake or some hack?
|
||
it("example", async ({browser}) => { | ||
// testing library matcher | ||
await expect(browser.$("some elem")).toContainHTML("<span>some html</span>"); |
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.
Hm, I don't understand where code with open some url?
No description provided.