Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformIgnorePatterns broke css in jest #130

Closed
robmcguinness opened this issue Jan 3, 2018 · 1 comment
Closed

transformIgnorePatterns broke css in jest #130

robmcguinness opened this issue Jan 3, 2018 · 1 comment

Comments

@robmcguinness
Copy link
Contributor

❯ npm t

> availity-ui-builder@0.1.1 test /Users/rmcguinness/Workspaces/availity/ui-generator
> av test

 FAIL  project/app/App.test.js
  ● Test suite failed to run

    /Users/rmcguinness/Workspaces/availity/ui-generator/node_modules/react-block-ui/style.css:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){.loading-indicator {
                                                                                             ^

    SyntaxError: Unexpected token .

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)
      at Object.<anonymous> (project/app/components/tags/index.js:6:1)
      at Object.<anonymous> (project/app/components/RenderExpandableDetails.js:8:13)
      at Object.<anonymous> (project/app/components/Render.js:6:32)

  console.error node_modules/fbjs/lib/warning.js:33
    Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. http://fb.me/react-polyfills
@robmcguinness
Copy link
Contributor Author

robmcguinness commented Jan 5, 2018

Below is non-issue. Less is not included in the React plugin.

Error in ./node_modules/availity-uikit/less/bootstrap.less
Module parse failed: Unexpected character '@' (2:0)
You may need an appropriate loader to handle this file type.
| // Fonts
| @import "~bootstrap/less/variables.less";
| @import "~bootstrap/less/mixins.less";
| @import "variables.less";
 @ ./node_modules/availity-uikit/lib/index.js 1:32-65
 @ ./project/app/index.js
 @ multi react-hot-loader/patch webpack-dev-server/client?http://127.0.0.1:3000 webpack/hot/only-dev-server ./index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant