Questions tagged [grunt-jest]

Grunt task to run tests with Jest.

Grunt task to run tests with Jest. GitHub

4 questions
3
votes
1 answer

How to generate a report file using facebook Jest

Im using Jest to run unit tests on my application. Is there a way I can get it to generate any sort of report file? I would like to integrate the report with Bamboo.
jennas
  • 2,444
  • 2
  • 25
  • 31
2
votes
0 answers

AppDispatcher is not registering store in jest

I am attempting to test a store using jest and it's not registering the AppDispatcher. The first commented line including jest.mock allowed the console.log to output an empty hash of { calls: [], instances: [] }. I don't want to explicitly call…
1
vote
0 answers

Jest clicking innerHTML: TypeError: undefined is not a function

I'm trying to simulate click event of the DOM, but for some funny reason it just won't work. Attaching the event to given a-element seems to be working, but clicking the element just keeps cursing at me. Do I have something conceptually wrong in…
Heikki Mustonen
  • 301
  • 3
  • 15
1
vote
1 answer

How do I debug Jest's preprocessor?

Occasionally I need to tweak my preprocessor.js to account for a new file type that shouldn't go through ReactTools.transform. I'd like to debug the calls to process to make sure I understand its arguments - however if I console.log within the…
pherris
  • 17,195
  • 8
  • 42
  • 58