π Portfolio developed by Next.js, Chakra UI, Styled Components, Framer Motion and TypeScript.
- Node.js 14+ and npm
.
βββ README.md # README file
βββ __mocks__ # Mocks for testing
βββ .husky # Husky configuration
βββ .vscode # VSCode configuration
βββ public # Public assets folder
βββ src
β βββ layouts # Layouts components
β βββ components # Re-usable components
β βββ config # General configuration
β βββ constants # General constants
β βββ pages # Next JS Pages
β βββ pages.test # Next JS Pages tests (this avoid test to treated as a Next.js pages)
β βββ utils # Utility functions
βββ tsconfig.json # TypeScript configuration
All tests are colocated with the source code inside the same directory. So, it makes it easier to find them. Unfortunately, it is not possible with the pages
folder which is used by Next.js for routing. So, what is why we have a pages.test
folder to write tests from files located in pages
folder.
Special thanks to craftzdog for his amazing portfolio ideas.