In my function named eventController. An axios call has implemented in two ways The 1st one is on this code Then this is the 2nd 2 different axi ...
In my function named eventController. An axios call has implemented in two ways The 1st one is on this code Then this is the 2nd 2 different axi ...
I have a react-native application When trying to run yarn jest, I have this error: react native version: "0.64.4" Dependencies: "react-native": " ...
I configured all my jest with babael, but I can't run the tests, it always shows the same error. I'm using nextJs and typescript with styled-component ...
Jest is running old, outdated, commented out piece of code even after clearing it's cache. It's almost like it's stuck in the past and i've ran the j ...
I am trying to force some environment variables from the Jest testcase such that during execution, the code should take the proper path: Basically my ...
I'm just trying to run some integration tests on a nestjs app, but I'm getting the following error: SyntaxError: Cannot use import statement outside ...
I tried to mock getConfg function from MyConfig.ts in MyUtil.test.ts. I am getting an error 'configMock.mockReturnValue is not a function'. How ...
I have an Angular (v15.0.0) component, which collects all DOM elements matching a CSS criteria. It is created to achieve the same effects on a 3rd par ...
How do I verify that *.test.ts, *.test.tsx, mocks folders, etc, are not being compiled into my release build React Native application? We added a ton ...
I have a method that iterates through an object which has nested arrays. I would like to know if there is a possibility to test if my method is iterat ...
I have already a mock class implemented as a part of my previous work, which I want to provide as a part of my Jest Unit Testing. Let me explain in c ...
After configuring Jest with Angular 14, I'm getting this error: Test suite failed to run The Jest configuration is: Where in setup-jest.ts we ha ...
I have the following code I am working with this API https://developer.mozilla.org/en-US/docs/Web/API/Performance/measureUserAgentSpecificMemory. The ...
I've been trying to configure jest and @testing-library/jest-dom to work with my typescript/react/next.js website. Every-time I run the test I run in ...
I am just trying to install ts-jest on new project like: $ mkdir test && cd test $ npm init -y $ npm install ts-jest All other packages c ...
I have multiple service tests that have almost equal beforeEach() and afterAll(). What can be done to eliminate the boilerplate? It looks simplified ...
I'm struggling to find a simple answer on internet on how to exclude *.data.spec.ts from Jest tests. I think this is happening in jest.config.json fil ...
Hi I have a Storybook App and i'm trying to add some jest test: This is my jest.config.js this is my component: and there is my test file: I ...
I have a simple Jest test for my Nest JS project. The Jest looks like: import { Test, TestingModule } from '@nestjs/testing'; import { IbmVpcControl ...
I am working on a project that uses Angular 5 (archaic, I know) and I followed this article to help set up Jest in my project, and my files look like ...