Skip to content

test: enhance list endpoint e2e test #27

@EiffelFly

Description

@EiffelFly

Context

Currently, we have this kind of test to test the list endpoint

check(http.request("GET", `${API_HOST}/tags`, undefined, { headers }), {
      "listTag - GET /tags - have two tags, should response 200": (r) =>
        r.status === 200,
      "listTag - GET /tags - have two tags, should response size=2": (r) =>
        r.json().size === "2",
    });

Sadly, it will have chance to get polluted by other testing, we may need to find better way to solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions