Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7816

Fix 'Could not parse CSS stylesheet' warning errors in mocha react tests

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Tech debt
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 3

      Repro: Run `npm test` in `compass-aggregations`.
      Observe the first lines in the output contain:
      Error: Could not parse CSS stylesheet
          at exports.createStylesheet (/Users/rhys/mongodb/compass/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js:37:21)
          at HTMLStyleElementImpl._updateAStyleBlock (/Users/rhys/mongodb/compass/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js:68:5)
      ...

      These are pretty noisy.
      Also happens in compass-query-bar, maybe others. This ticket involves fixing or silencing those errors.

            Assignee:
            vivian.xiao@mongodb.com Vivian Xiao (Inactive)
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: