相关疑难解决方法(0)

如何编写Jest transformIgnorePatterns

我有这个问题

Jest encountered an unexpected token

    This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

    By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

    Here's what you can do:
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your …
Run Code Online (Sandbox Code Playgroud)

jestjs

7
推荐指数
1
解决办法
840
查看次数

标签 统计

jestjs ×1