pecus’s avatarpecus’s Twitter Archive—№ 5,299

    1. The default configuration of VueJS in Cypress does not use Babel loader for .js files*. It took me a while to solve an import in a test that was wreaking havoc because of an object spread. Patch your VueJS Webpack config to use object-rest-spread and ...testHappily 👇🏿
      oh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @pecus
    * the reason .js files do not go through babel is because they are mostly imported in Vue SFC and handled during the single file component splitting and transpiling. During testing there might be legitimate needs to import only a function or helper, and it can bite your back.