如何使用iron-node来debugging玩笑unit testing?

要运行我的UT,我运行命令:

BABEL_JEST_STAGE=0 jest 

我如何使用iron-node来debugging我的unit testing?

顺便说一句,我的package.json有一个标准的笑话configuration:

  "jest": { "scriptPreprocessor": "<rootDir>/node_modules/babel-jest", "testFileExtensions": [ "es6", "js" ], "moduleFileExtensions": [ "js", "json", "es6" ], "unmockedModulePathPatterns": [ "react" ] } 

我最近写了一个关于如何debugginggrunt任务的文档。 有一个很好的机会,你可以应用这种技术来debugging玩笑。

https://github.com/sa/iron-node/blob/master/docs/DEBUG-NODEJS-COMMANDLINE-APPS.md

Interesting Posts