Skip to content

Update tests and documentation for Tailwind CSS migration#37

Merged
GuiMoraesDev merged 2 commits intomainfrom
refactor/migrate-to-astro-tailwind
Apr 3, 2026
Merged

Update tests and documentation for Tailwind CSS migration#37
GuiMoraesDev merged 2 commits intomainfrom
refactor/migrate-to-astro-tailwind

Conversation

@GuiMoraesDev
Copy link
Copy Markdown
Owner

This pull request migrates the frontend from Next.js with styled-components to Astro 5 with React islands and Tailwind CSS v4, and updates the project structure, documentation, and configuration to reflect this major architectural change. It also aligns environment variables, linting, and testing with Astro conventions and removes legacy Next.js and styled-components dependencies.

Framework and Architecture Migration:

  • Migrated the frontend from Next.js 12 with styled-components to Astro 5 with React islands (client:load) and Tailwind CSS v4, including updates to documentation (README.md, CLAUDE.md) and removal of Next.js/styled-components-specific files and configs (e.g., .babelrc, jest-styled-components). [1] [2] [3] [4] [5] [6]

  • Added a new Astro configuration file (astro.config.mjs) with Vite aliases for absolute imports and Tailwind integration, and updated the monorepo structure documentation accordingly. [1] [2]

Environment Variables and CI:

  • Changed all environment variables from NEXT_PUBLIC_* to PUBLIC_* to match Astro's conventions, including updates in documentation and the GitHub Actions CI workflow. [1] [2] [3]

Linting and ESLint Configuration:

  • Replaced Next.js-specific ESLint config with a custom configuration for Astro/React/TypeScript, ignored .astro files, and updated import order rules to match the new structure. [1] [2] [3]

Testing and Conventions:

  • Updated testing documentation and setup to use Jest + React Testing Library with Tailwind CSS, and documented known caveats for Astro (e.g., import.meta.env mocking, Tailwind visibility in JSDOM). [1] [2]

Documentation and Project Structure:

  • Overhauled README.md and added/updated CLAUDE.md to reflect the new Astro-based architecture, project folder structure, commands, and conventions. [1] [2] [3] [4]

References: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

GuiMoraesDev and others added 2 commits April 1, 2026 14:53
Replace toBeVisible/not.toBeVisible assertions with toHaveClass('invisible')
checks since JSDOM cannot compute visibility from Tailwind class names.
Mock GoogleSign component in Sign tests to avoid import.meta.env parse error.
Update all snapshots to reflect Tailwind classes instead of styled-components.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rewrite README.md to reflect current stack (Astro 5, Tailwind CSS v4,
Turborepo, npm) replacing outdated Next.js/styled-components/Yarn refs.
Add Testing sections to both CLAUDE.md files documenting import.meta.env
mock requirement, Tailwind visibility testing caveats, and snapshot workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@GuiMoraesDev GuiMoraesDev self-assigned this Apr 3, 2026
@GuiMoraesDev GuiMoraesDev merged commit d373be1 into main Apr 3, 2026
2 checks passed
@GuiMoraesDev GuiMoraesDev deleted the refactor/migrate-to-astro-tailwind branch April 3, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant