Update tests and documentation for Tailwind CSS migration#37
Merged
GuiMoraesDev merged 2 commits intomainfrom Apr 3, 2026
Merged
Update tests and documentation for Tailwind CSS migration#37GuiMoraesDev merged 2 commits intomainfrom
GuiMoraesDev merged 2 commits intomainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
NEXT_PUBLIC_*toPUBLIC_*to match Astro's conventions, including updates in documentation and the GitHub Actions CI workflow. [1] [2] [3]Linting and ESLint Configuration:
.astrofiles, and updated import order rules to match the new structure. [1] [2] [3]Testing and Conventions:
import.meta.envmocking, Tailwind visibility in JSDOM). [1] [2]Documentation and Project Structure:
README.mdand added/updatedCLAUDE.mdto 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]