meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
491 stars 116 forks source link

fix(base64): base64.min.js has been removed in js-base64@2.6.X #125

Closed gierschv closed 3 years ago

gierschv commented 4 years ago

Since js-base64@2.6.0, only the non-minified js is included in the modules, which breaks cypress-plugin-snapshots:

Error

vospascal commented 4 years ago

Might be an idea to remove ^(caret) symbol from the package.json and use fixed versions all to getter not getting this kind of error shifting dependency functionality out from underneath you. Makes using this bit tricky

~version “Approximately equivalent to version”, will update you to all future patch versions, without incrementing the minor version. ~1.2.3 will use releases from 1.2.3 to <1.3.0.

^version “Compatible with version”, will update you to all future minor/patch versions, without incrementing the major version. ^2.3.4 will use releases from 2.3.4 to <3.0.0.

for more info see https://docs.npmjs.com/files/package.json and https://docs.npmjs.com/misc/semver

vospascal commented 4 years ago

setting "js-base64": "2.5.2" in your local package.json file fixes the problem for now..

gierschv commented 4 years ago

I agree on removing the ^, I will update the PR.