Top "Babel-jest" questions

A Babel transpiler to assist with the conversion of ES6 to ES5 for the Jest testing framework.

How to test DOM manipulation in JEST

I'm trying to test a ES6 function which updates the dom element whenever it is being executed. Currently I'm getting …

jestjs babel-jest
VueJS - Unit testing with vue-test-utils gives error - TypeError: _vm.$t is not a function

Relatively new to Vuejs and testing its components. Using vue-test-utils and jest for testing. Getting following error test log The .…

vue.js sass jestjs babel-jest vue-test-utils
jest hangs indefinitely, runs no tests

Every time I run jest it never runs anything. I have let the counter go arbitrarily high. I have run …

node.js testing npm jestjs babel-jest
What is the difference between babel-core and @babel/core?

What is the difference between babel-core and @babel/core ? Are they the same thing but different versions? If not so, …

babeljs babel-loader babel-jest
reactjs jest jQuery is not defined

I am using jest to test my reactJS component. In my reactJS component, I need to use jquery UI, so …

reactjs jestjs babel-jest
`toBeInstanceOf(Number)` does not work in jest

I have a test as follows: expect(result.data.quota).toBeInstanceOf(Number); This test fails with a weird error saying …

jestjs babel-jest
Testing ES6 class with Jest throws 'not a constructor' error

I found a similar problem here, but there doesn't seem to be an answer. I'm trying to test an ES6 …

javascript babeljs jestjs es6-class babel-jest
Jest transformIgnorePatterns not working

I have spent a long time looking at other questions about this and looking at other projects on Github but …

javascript reactjs jestjs babel-jest
Configuring Babel and Jest

TLDR: How can I configure jest so that it uses babel to compile the test files and the files required …

node.js babeljs jestjs babel-jest
Jest, Unexpected Token Import

I start a new react project and I wand to use Jest as testing platform. Despite docs, blogs and many …

reactjs jestjs babel-jest