-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
can it be use with uve? #80
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
i am a new comer for jest and working on a project with some feature to draw on a canvas element.
in my test, i found that it didn't work when i tried to expect on a call on the mocked canvas.ctx.fillText. let me explain the details as below.
`
//the render from '@testing-library/vue' to spin up the detectedObjects component with only a canvas element.
const { container } = render(detectedObjects);
`
i can assure that the code in the component that calls fillText has been executed before the expect. when i experimented by adding "ctx.fillText('hello world!', 1, 2)" before the expect, the test passed.
can you help to check why my test case doesn't work? thanks a lot in advance for your help.
The text was updated successfully, but these errors were encountered: