nuxt / nuxt/test-utils

Allow to check the parameters sent by using registerEndpoint

Open
#885 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement pending triage
Dominant language
TypeScript
Stars
437
Forks
120
Avg merge
22h 52m
Merged PRs (30d)
23

Description

Describe the feature

The function "registerEndpoint" is an interesting feature to check if a request is sent, and to check the response parsing.

However, it would be also useful to check which params are sent in the URL, in the query parameters and in the body.

Additional information
  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?
Final checks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the registerEndpoint entry point in the test-utils repository and read how it currently checks requests and response parsing. Determine how URL, query-parameter, and body values should be exposed for assertions, then verify that each of these parameter sources can be checked in tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
api, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.