Skip to content

Add tests for react-styled package #24

@alikhere

Description

@alikhere

Description:
packages/react-styled has no test script and no tests. The package currently exposes one component: StorachaAuth (and its subcomponents: Form, EmailInput, CancelButton, Submitted, Ensurer). Tests should cover the styled StorachaAuth: that it renders without error, that the form and Ensurer render with the expected labels/placeholders, and that exports work when used with Provider from the headless package.

Expected outcome:

  • A test script in packages/react-styled/package.json (e.g. vitest run), plus vitest and testing-library as devDependencies if not already present.
  • A test file (e.g. packages/react-styled/test/StorachaAuth.spec.tsx) with at least: rendering StorachaAuth.Form and StorachaAuth.Ensurer (with Provider from headless), and asserting on visible text (e.g. "Email", "Authorize", "Verify your email").

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions