Skip to content

updateProps dos not exist #280

Closed
Closed
@davidnixon

Description

@davidnixon

Describe the bug A clear and concise description of what the bug is.

https://testing-library.com/docs/vue-testing-library/api#updatepropsprops
Does not exist

To Reproduce Steps to reproduce the behavior:

   const result = render(MyComponent, { props });
   console.log(result.updateProps) // undefined

Expected behavior A clear and concise description of what you expected to
happen.

updateProps is not defined but rerender is defined and works as expected according to the react docs https://testing-library.com/docs/react-testing-library/api/#rerender

I think updateProps should be removed from the vue section and replaced with something similar to the react doc.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Fedora 36
  • Browser chrome
  • Version 104.0.5112.79 (Official Build) (64-bit)

Additional context Add any other context about the problem here.
package.json

    "@testing-library/dom": "^8.13.0",
    "@testing-library/user-event": "^14.2.0",
    "@testing-library/vue": "^6",

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreChanges to things that do not actually go into productiongood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions