Home / Function/ cleanupUser() — ui Function Reference

cleanupUser() — ui Function Reference

Architecture documentation for the cleanupUser() function in commands.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3808d46b_b718_1870_a575_e079cbabba0c["cleanupUser()"]
  e91d8547_a204_d0f5_33e5_12f46d875f67["commands.ts"]
  3808d46b_b718_1870_a575_e079cbabba0c -->|defined in| e91d8547_a204_d0f5_33e5_12f46d875f67
  36334d12_4123_4d22_1009_372854be7362["deleteUserByEmail()"]
  3808d46b_b718_1870_a575_e079cbabba0c -->|calls| 36334d12_4123_4d22_1009_372854be7362
  style 3808d46b_b718_1870_a575_e079cbabba0c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/commands.ts lines 63–75

function cleanupUser({ email }: { email?: string } = {}) {
  if (email) {
    deleteUserByEmail(email);
  } else {
    cy.get("@user").then((user) => {
      const email = (user as { email?: string }).email;
      if (email) {
        deleteUserByEmail(email);
      }
    });
  }
  cy.clearCookie("__session");
}

Subdomains

Frequently Asked Questions

What does cleanupUser() do?
cleanupUser() is a function in the ui codebase, defined in packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/commands.ts.
Where is cleanupUser() defined?
cleanupUser() is defined in packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress/support/commands.ts at line 63.
What does cleanupUser() call?
cleanupUser() calls 1 function(s): deleteUserByEmail.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free