Javascript TypeError:预期喉部大小为数字,但未定义
我想用小丑马戏团的跑步者来开玩笑。在没有运行程序的情况下,测试将正确执行,但只要我添加行:Javascript TypeError:预期喉部大小为数字,但未定义,javascript,jasmine,jestjs,automated-tests,jest-circus,Javascript,Jasmine,Jestjs,Automated Tests,Jest Circus,我想用小丑马戏团的跑步者来开玩笑。在没有运行程序的情况下,测试将正确执行,但只要我添加行: 'testRunner': 'jest-circus/runner', 我开玩笑说。我看到以下错误: FAIL migration.test.js ● Test suite failed to run TypeError: Expected throat size to be a number but got undefined at throat (node_modules/thro
'testRunner': 'jest-circus/runner',
我开玩笑说。我看到以下错误:
FAIL migration.test.js
● Test suite failed to run
TypeError: Expected throat size to be a number but got undefined
at throat (node_modules/throat/index.js:34:13)
at Object.<anonymous>.module.exports (node_modules/throat/index.js:76:12)
这是一个版本兼容性问题
将jest版本23与jest circus 24一起使用将导致该错误。因此,只需将jest升级到版本24,它就可以正常工作。有史以来最好的错误消息候选?