使用节点检查器调试Redux Jest测试

使用节点检查器调试Redux Jest测试,redux,jestjs,node-inspector,Redux,Jestjs,Node Inspector,我正在尝试从github repo调试Redux Jest测试 使用节点检查器 node——检查节点\u模块/jest/bin/jest.js——runInBand import { bindActionCreators, createStore } from '../src' import { todos } from './helpers/reducers' import * as actionCreators from './helpers/actionCreators' describ

我正在尝试从github repo调试Redux Jest测试 使用节点检查器

node——检查节点\u模块/jest/bin/jest.js——runInBand

import { bindActionCreators, createStore } from '../src'
import { todos } from './helpers/reducers'
import * as actionCreators from './helpers/actionCreators'

describe('bindActionCreators', () => {
  let store
  let actionCreatorFunctions

beforeEach(() => {
  debugger;
  store = createStore(todos)
  ...
  ...
但是,当在测试中放置
调试器
语句时,我看到以下错误,如上所示

FAIL  test/bindActionCreators.spec.js
 ● Test suite failed to run

/redux/test/bindActionCreators.spec.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){var _extends = Object.assign || function (target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i];for (var key in source) {if (Object.prototype.hasOwnProperty.call(source, key)) {target[key] = source[key];}}}return target;};import { bindActionCreators, createStore } from '../src';
                                                                                                                                                                                                                                                                                                                                                ^^^^^^

SyntaxError: Unexpected token import

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)
      at Generator.next (<anonymous>)
      at new Promise (<anonymous>)
失败测试/bindActionCreators.spec.js
● 测试套件无法运行
/redux/test/bindActionCreators.spec.js:1
({“Object.”:函数(module,exports,require,uu dirname,uuu filename,global,jest){var\u extends=Object.assign{函数(target){for(var i=1;i
我在跑步

  • 节点v8.9.1
  • jest v21.2.1
  • redux主分支
有什么想法吗