I am using Jest in a Next.js 12 App with the Rust Compiler. Since I'm using WebWorkers I have a file in which I use import.meta.url. to construct the worker The
After updating to React 18 or creating a new React 18 app from create-react-app, when I run the yarn test command, it gives a console.error as a Warning for eac
I have several tests written with Jest and React Testing Library. They all mock fetch and use a userEvent.click call to fire a submit button which makes a fetch
If I run the tests with jest, I got always the error message TypeError: this.subQuery is not a function with a reference on the marked line in the testModelDb.t
Has anyone successfully upgraded to latest Jest version 28.0.0? I'm receiving an error: Error: Test environment jest-environment-jsdom cannot be found. Make sur
Hello I am not sure what is wrong with installing Jest. https://jestjs.io/docs/getting-started But here is my issue with my terminal. Please help. I am new to t
I just can't figure out, how I'm supposed to mock / get data from scrollHeight, scrollWidth, clientHeight and clientWidth in test. For better introduction, my t
I created an app within a monorepo (Lerna) using yarn workspace. The architecture of the app is as follow: my-monorepo ├── node_modules ├
I'm trying to upgrade my project to React 18, everything works in dev and production mode in the browser. But after upgrading to the latest version of @testing-
Swiper 8 and Jest (support ESM) Must use import to load ES Module enter image description here enter image description here How we can solve if I need to keep s
I'm trying to run a for loop within a Puppeteer test that sends values to a search bar: test('test one', () => { var results = [""] var fuzz = ['ap
Describe the bug Unable to use the change methods of the contract on jest with near test-environment. I get this error when trying to use the change methods Gre
I have a problem testing transiton functions with jest and vue test utlis. This is my component code: <div class="disclosure"> <button clas
I'm trying to implement database population by using a migration function. The code works perfectly, it saves all the data into the database, but the test for t
I have a typescript module with a function that I'm trying to test with jest. The function I'm trying to test uses a typescript class that's defined in the same
I am trying to set a cookie session to a post request in supertest but I cannot. This is my test code: const app = express(); app.set("trust proxy", true); app
I am new to writing test cases in jest and i wanted to test 'mark' function and want to mock 'request' node module. let's say this file's name is app.js and tes
I have Jest tests that are running against the dockerized Neo4j Database, and sometimes they fail on CircleCI. The error message for all 25+ of them is : thrown
I am trying to unit test my function that call useQuery from @apollo/client. Here's what I have done getPixelID.ts import { useQuery } from '@apollo/client'; im
I'm trying to write a test that tests the various method calls to other methods within the same file. So far, I've written tests for two different methods, one