vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
MIT License
9.7k stars 4.38k forks source link

Upgrade jest #1434

Closed abetomo closed 5 years ago

abetomo commented 6 years ago

The following errors were fixed.

  ● Test suite failed to run

      SecurityError: localStorage is not available for opaque origins

            at Window.get localStorage [as localStorage]
            (node_modules/jsdom/lib/jsdom/browser/Window.js:257:15)
                      at Array.forEach (<anonymous>)
sylhare commented 5 years ago

Allo

For me #1424 using the testURL: 'http://localhost' in the jest.config.js did the trick. Updating did not solve the problem.

abetomo commented 5 years ago

A newer jest is released so close it.