小编Ars*_*lan的帖子

Next.js:Jest 遇到意外令牌。Jest 解析文件失败。由于点 ( .{color: red} ) 在 CSS 文件中的 className 之前崩溃

Jest 遇到意外令牌

Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

By default "node_modules" folder is ignored by transformers.

Here's what you can do:
 • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how …
Run Code Online (Sandbox Code Playgroud)

testing token jestjs next.js testing-library

11
推荐指数
0
解决办法
3297
查看次数

标签 统计

jestjs ×1

next.js ×1

testing ×1

testing-library ×1

token ×1