{"description":"\u53c2\u7167\u3057\u305f\u30da\u30fc\u30b8 reactjs - How to resolve \"Cannot use import statement outside a module\" from Jest when running tests? - Stack Overflow \u8868\u793a\u3055\u308c\u305f\u30a8\u30e9\u30fc FAIL src/lib/hoge/hoge.spec.ts \u25cf Test suite failed to run Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmotomichi-works.hatenablog.com%2Fentry%2F2024%2F05%2F29%2F104601\" title=\"jest\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc SyntaxError: Cannot use import statement outside a module \u3092\u89e3\u6c7a\u3059\u308b - Motomichi Works Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_url":"https://hatena.blog","url":"https://motomichi-works.hatenablog.com/entry/2024/05/29/104601","published":"2024-05-29 10:46:01","blog_title":"Motomichi Works Blog","blog_url":"https://motomichi-works.hatenablog.com/","type":"rich","author_url":"https://blog.hatena.ne.jp/motomichi_works/","title":"jest\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc SyntaxError: Cannot use import statement outside a module \u3092\u89e3\u6c7a\u3059\u308b","version":"1.0","image_url":null,"categories":["\u5236\u4f5c","jest"],"provider_name":"Hatena Blog","height":"190","author_name":"motomichi_works"}