You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing a web dev project built via only DOM scripting.
I'm using Deno 2.4 with its built-in test runner (no Jest or Vitest), @std/expect (from jsr), @testing-library/dom (from npm) and @testing-library/jest-dom (from npm) like this:
import {expect} from "@std/expect";
import {screen} from "@testing-library/dom";
import * as matchers from "@testing-library/jest-dom/matchers";
expect.extend(matchers);
My problem is I cannot use jest-dom matchers like toBeVisible() or toBeInTheDocument() because appears not to be available while coding. I think the problem could be related to types or configuration according to the LSP feedback, so I would appreciate if you can provide me a list of steps for correctly configuring the testing stuff for using jest-dom matchers once for all.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am testing a web dev project built via only DOM scripting.
I'm using Deno 2.4 with its built-in test runner (no Jest or Vitest), @std/expect (from jsr), @testing-library/dom (from npm) and @testing-library/jest-dom (from npm) like this:
My problem is I cannot use jest-dom matchers like toBeVisible() or toBeInTheDocument() because appears not to be available while coding. I think the problem could be related to types or configuration according to the LSP feedback, so I would appreciate if you can provide me a list of steps for correctly configuring the testing stuff for using jest-dom matchers once for all.
Beta Was this translation helpful? Give feedback.
All reactions