You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to debug my tests using ava and devtool.
For my project, I've managed to do it like so: NODE_ENV=test devtool node_modules/ava/profile.js test/dfs-pre.js -r babel-register
Note that I need to put devtool flags at the end as profile.js reads arguments at specific positions. That said I use this command line in a npm script to which I pass the file I want to debug.
The problem is that I need my test/foo.js to be the 3rd argument. The flags of devtool conflict with this.
Proposal
In order to be able to start devtool without any flags, it would be super nice to be able to make them available in .devtoolrc. The most urgent for me would be require.
Thanks!
The text was updated successfully, but these errors were encountered:
ngryman
changed the title
Add require option to config
Support more flags in devtoolrc
Mar 28, 2017
Hey,
Context
I'm trying to debug my tests using
ava
anddevtool
.For my project, I've managed to do it like so:
NODE_ENV=test devtool node_modules/ava/profile.js test/dfs-pre.js -r babel-register
Note that I need to put
devtool
flags at the end asprofile.js
reads arguments at specific positions. That said I use this command line in anpm
script to which I pass the file I want to debug.package.json
cli
result
Problem
The problem is that I need my
test/foo.js
to be the 3rd argument. The flags ofdevtool
conflict with this.Proposal
In order to be able to start
devtool
without any flags, it would be super nice to be able to make them available in.devtoolrc
. The most urgent for me would berequire
.Thanks!
The text was updated successfully, but these errors were encountered: