我是一个开玩笑的新手,我尝试在下面的代码中找出一些基本的东西
import * as actions from './IncrementalSearchActions'; describe('Incremental Search Actions', () => { it('Should create an incremental search action') });
我对此的疑问/困惑是
Are your test files under a the "test" folder? make sure jest is install properly and listed on your package.json and under scripts have:
"test": "jest --coverage",
you can run the script with npm test
I believe the answer here is the answer to your question.
TL;DR;:
add the following to your .eslintrc file:
.eslintrc
"env": { "jest": true }