ryx / testcafe-browser-provider-nightmare

Testcafe browser provider for the nightmare browser automation library
MIT License
26 stars 5 forks source link

Allow debug mode without debugging all #10

Closed sudsy closed 7 years ago

sudsy commented 7 years ago

I have a number of other dependencies that are running in my testcafe script and turning on DEBUG=* causes way to much logging and slows the whole process down.

I have made a change that allows DEBUG=testcafe-browser-provider-nightmare. This will cause the nightmare browser to be opened in debug mode but doesn't enable the debug log for nightmare itself or any other module.

I haven't made a change to the documentation in case you weren't comfortable with this approach as a default.