VScode调试与jest返回;意外标记“;导入的CSS文件出错

VScode调试与jest返回;意外标记“;导入的CSS文件出错,css,reactjs,debugging,visual-studio-code,jestjs,Css,Reactjs,Debugging,Visual Studio Code,Jestjs,我使用jest在VSCode中调试react应用程序,配置如下: { "type": "node", "request": "launch", "name": "Launch Jest", "program": "${workspaceRoot}/node_modules/jest/bin/jest.js", "cwd": "${workspaceRoot}", "args": [ "--runInBand", "--cov

我使用jest在VSCode中调试react应用程序,配置如下:

{
    "type": "node",
    "request": "launch",
    "name": "Launch Jest",
    "program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
    "cwd": "${workspaceRoot}",
    "args": [
      "--runInBand",
      "--coverage"
    ],
    "runtimeArgs": [
      "--nolazy", "-r", "flow-remove-types/register"
    ],
    "env": {
      "NODE_ENV": "development"
    },
    "sourceMaps": true
}
当我运行js文件导入css文件的测试时(例如“import./Bla.css”),我得到以下“意外标记”错误:

为什么它要调试我的css?我如何防止这种情况

Test suite failed to run
    /Users/rdiaz15/yeti/service-registry-react-ui/src/main/app/src/app/TopBarView.css: Unexpected token (1:0)
      > 1 | .topbar {
          | ^
        2 |     position: fixed;
        3 |     top: 0px;