dimanche 12 juillet 2020

Vue CLI 3 : Jest encountered an unexpected token

I'm importing isEqual from lodash in my component:

import { isEqual as _isEqual } from "lodash-es";

this is my computed in component:

checkCurrentMusic() {
      return _isEqual(this.current, this.music);
}

I didn't wrote any test for this function and my test fails.

error:

enter image description here

this is my jest config:


module.exports = {
  preset: "@vue/cli-plugin-unit-jest"
};

Aucun commentaire:

Enregistrer un commentaire