Skip to content

EventCard.spec.js fails to run test #4

@andersonphiri

Description

@andersonphiri

FAIL tests/unit/EventCard.spec.js
EventCard
× renders successfully (20ms)

● EventCard › renders successfully

TypeError: 'set' on proxy: trap returned falsish for property 'hasOwnProperty'

   9 |       time: '11:00',
  10 |     }
> 11 |     mount(EventCard, {
     |     ^
  12 |       props: { event },
  13 |     })
  14 |   })

  at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7838:24)
  at Object.<anonymous> (tests/unit/EventCard.spec.js:11:5)

console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
[Vue warn]: Failed to resolve component: router-link
at <Anonymous event= {
id: 1,
title: 'location in testing',
date: 'July 22, 2022',
time: '11:00'
} ref="VTU_COMPONENT" >
at

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions