Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Add better debug workflows for testing #53

Closed
ganemone opened this issue Dec 5, 2017 · 3 comments
Closed

Add better debug workflows for testing #53

ganemone opened this issue Dec 5, 2017 · 3 comments

Comments

@ganemone
Copy link
Contributor

ganemone commented Dec 5, 2017

We should have an easy way to run your tests in debug mode for both browser and node tests.

@supersonicclay
Copy link

It looks like fusion test --debug works for me. But fusion test --debug --watch does not hit my breakpoints.

@supersonicclay
Copy link

I was able to get debugging with watch working by passing the --no-cache flag to jest.
jestjs/jest#6683 (comment)

Here's the full command that works for fusion.

JEST_ENV=dev node --inspect ./node_modules/.bin/jest --config=./node_modules/fusion-cli/build/jest/jest-config.js --runInBand --watch --no-cache

@KevinGrandon
Copy link
Contributor

I think that this ticket was made before we had the --debug option, so going to close this for now. We will either add or passthrough --no-cache when debug is set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants