teambit / envs

Component development environments for the Bit community
https://bit.dev/bit/envs
Other
63 stars 9 forks source link

Vue component test (jest) fails online but passes locally #122

Open renshawdev opened 4 years ago

renshawdev commented 4 years ago

Describe the bug

bit test passes locally but fails in the online component example

Steps to Reproduce

  1. export vue component
  2. go to online component
  3. see failing status with logs in console

Expected Behavior

If it tests pass locally after following instructions, they should pass online.

Screenshots, exceptions and logs

image

image

image

Specifications

KutnerUri commented 4 years ago

Seems like an isolation issue. core-js is a polyfill for a variety of standard methods, like array.concat(), apparently. It's supposed to support older browser that had not implemented new features.

I think it is related to Babel, its plugin @babel/preset-env adds this polyfill (where needed). Maybe the compiler should add this as a peer dependency? Not sure why this is failing for this component and not for others.

@JoshK2 - do you have any insight about this?

davidfirst commented 4 years ago

@Tallyb , If I remember correctly, you're working on a new Jest compiler. If so, please keep this issue in mind.