Skip to main content
Tooling
0 votes
2 replies
47 views

I work on a NextJS project with Pages Router. We are using Jest for unit tests and Playwright for E2E. The application we are making is a funnel with several steps. Each step is a form with several ...
vtomic85's user avatar
  • 623
1 vote
1 answer
54 views

Problem Starting November 10th, my Jest integration tests began failing randomly with MongoDB connection errors. The tests use @testcontainers/mongodb v11.5.1 and mongodb v8.0.12. Error: ...
hiddenhenry's user avatar
-1 votes
0 answers
44 views

This is my parent component. import { useState } from 'react'; import VButton from 'ui-components/src/v2/VButton.jsx'; import { Provider } from 'ui-components/src/v2/providers/chakra.jsx'; import { ...
dariusz's user avatar
  • 593
0 votes
1 answer
50 views

In our tests, we had several snapshots that included content wrapped in next/head. We had previously followed the below pattern for the mock, which allowed us to see all the header tags like meta, ...
GotDibbs's user avatar
  • 3,157
-1 votes
0 answers
57 views

I want to mock transaction as PoolConnection jest.mock('../../src/config/db.js', () => ({ __esModule: true, default: { execute: jest.fn(), query: jest.fn(), ...
Agusta Pradnyana's user avatar
1 vote
0 answers
88 views

This is my unit test: import '@testing-library/jest-dom/extend-expect'; import { render, cleanup, fireEvent, waitFor, waitForElementToBeRemoved, screen, } from '@testing-library/svelte'; ...
dariusz's user avatar
  • 593
1 vote
1 answer
82 views

I am doing unit testing for my project. This is the code I want to test: import { create } from "zustand"; import { persist } from "zustand/middleware"; interface LanguageState { ...
Lollypop123445's user avatar
0 votes
1 answer
39 views

I have a TypeScript monorepo that uses jest, and has a globalSetup script configured at the root config (it starts a local database process that many of the tests use). Example Directory structure ...
jon without an h's user avatar
0 votes
1 answer
73 views

I am attempting to run a simple Jest test to render the App element. This is our App.test.tsx: test('render application', () => { render(<App />); } This is the error that is being ...
DHZA's user avatar
  • 7
0 votes
0 answers
40 views

I am building a Manifest V3 Chrome Extension using Firebase and testing it with Jest and Puppeteer. My manual testing works perfectly, but one specific automated test consistently fails with a 30-...
David Kessler's user avatar
0 votes
0 answers
38 views

I’m trying to add a custom method onto the Jest API inside a setup file (config.ts) configured via setupFilesAfterEnv. However, the jest object I mutate in the setup file is NOT the same reference as ...
PierBJX's user avatar
  • 2,412
0 votes
0 answers
428 views

Jest 30 uses JSDOM 26, which breaks my tests. I want to test if location.search was modified. Since JSDOM 21, it is not possible to mock location.search as easily as it used to be: // does not work ...
htho's user avatar
  • 1,892
0 votes
0 answers
85 views

I have an integration test that publishes a domain event to Google Cloud Pub/Sub (using the Pub/Sub emulator). Eventduspatcher.integration.test.ts passes but Jest prints: Jest did not exit one second ...
gonchan's user avatar
0 votes
0 answers
197 views

I'm running into some inconsistent behavior with Jest 30.x, specifically when parsing a jest.config.ts file that imports another TypeScript module, on Node.js 22.18+. My code uses ESM syntax for the ...
Christian Siqueira's user avatar
1 vote
0 answers
46 views

My question is related to Enabling Jest cache in CI servers but a bit more specific. We use Jest with cache enabled on a CI server running tests on multiple projects. By default, Jest uses /tmp/...
charlockfreefr's user avatar

15 30 50 per page
1
2 3 4 5
1529