Оператор импорта Jest: 'TypeError: Невозможно установить свойство fillStyle равным null' - PullRequest
0 голосов
/ 02 августа 2020

Я набираю:

npm test

и получаю:

enter image description here

It's interesting to note that the import statement works inside the BootScene.test.js file but it doesn't work in the imported file.

I focused on the import statement not working under JEst. So I thought maybe it has something to do with Ecma Script version jest uses. So I tried это решение, но ошибка сохраняется.

Это репо / ветвь этого вопроса.

Когда я набираю npm start. Все идет быстро и без ошибок.

1 Ответ

0 голосов
/ 03 августа 2020

Я решил это, следуя этим инструкциям.

введите описание изображения здесь

Спасибо CherryDt.

...