probil / vue-socket.io-extended

:v::zap: Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)
MIT License
628 stars 38 forks source link

Update jest to version 27 #533

Closed jnt0r closed 3 years ago

jnt0r commented 3 years ago

531 failed because Jest 27 changed default testEnvironment from jsdom to node. So DOM related elements like window or document are not accessible by default anymore.

see: https://jestjs.io/docs/configuration#testenvironment-string

Updated jest and set testEnvironment to jsdom for all tests so they are working again.

codecov[bot] commented 3 years ago

Codecov Report

Merging #533 (5dc7e6a) into master (8f65e08) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #533   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          131       131           
  Branches        21        21           
=========================================
  Hits           131       131           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8f65e08...5dc7e6a. Read the comment docs.

probil commented 3 years ago

Awesome @jnt0r ! 🎉