Я пытаюсь использовать Jest для помощи в тестировании Puppeteer в WebStorm.
Я впервые использую Jest, и он выглядит просто как фреймворк, который мне нужен, чтобы помочь с тестированием, утверждениями, настройкой и демонтажем и т. Д. *
Проблема в том, что WebStorm не распознает ключевые слова, например, до всех, опишите, после всех. Вот фрагмент кода:
![enter image description here](https://i.stack.imgur.com/C8mmj.png)
Мой файл package.json выглядит так:
{
"name": "ui-tests",
"version": "1.0.0",
"description": "End-to-end UI tests",
"author": "John Doe",
"license": "MIT",
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.0.17"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "jest",
"debug": "NODE_ENV=debug npm test",
"eject": "react-scripts eject"
},
"jest": {
"testURL": "http://localhost"
},
"devDependencies": {
"faker": "^4.1.0",
"jest-cli": "^22.0.4",
"jest": "^22.0.4",
"puppeteer": "^1.9.0"
}
}
У меня установлены следующие плагины:
![enter image description here](https://i.stack.imgur.com/AUCyH.png)
Есть идеи?
Спасибо