Skip to content

Integrated tests #140

@aarne

Description

@aarne

something like

test "Create and Fetch User Flow" {
  # Bring both bridges into scope
  with Mutation.createUser as create
  with Query.getUser as get

  # 1. Setup the inputs for the Create mutation
  create.name <- "Alice"
  create.email <- "alice@example.com"
  
  # 2. Chain the output of Create directly into the input of Get!
  get.userId <- create.newUserId

  # 3. Assertions
  assert create.success == true
  assert get.user.name == "Alice"
  assert get.user.email == create.email
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions