Vitest : (A Vite-native testing framework)1. Vitest Scripts in package.json "scripts": { // This script runs Vitest to execute the test suite "test": "vitest", // This script runs Vitest with an additional flag --coverage // The --coverage flag generates a test coverage repo...Oct 22, 2024 · 1 min readnamaste-react.hashnode.dev
🧪Testing Library 🦑 - JEST1. Types of testing (developer) : Unit Testing : Testing One Component in Isolation || means seperately Integration Testing : Testing Integration of Components End to End Testing (or) e2e Testing : End-to-end testing verifies that all components...Oct 7, 2024 · 3 min readnamaste-react.hashnode.dev
Higher Order Component (HOC) - promoted tag🚀 Higher Order Components input is component and output is (modified) component // FileName: 📂Restaurant Card const RestaurantCard = ({ data }) => { .... .... } export const withPromotedLabel = (RestaurantCard) => { return (props) => { ...Sep 22, 2024 · 1 min readnamaste-react.hashnode.dev
Animation: GSAP, srollTrigger, Locomotive,GSAP,ScrollTrigger GitHub link (04 onwards) Sarthak Bhaiya- GSAP, ScrollTrigger (gsap folder)Sep 1, 2024 · 1 min readnamaste-react.hashnode.dev
Passport.js : Authentication - Local Strategy1.Folder Structure project-root/ │ ├── config/ # Configuration files │ ├── db-connection.js # Database connection setup │ ├── passport-config.js # Passport.js configuration │ ├── session-config.js # Session configurati...1TAug 15, 2024 · 6 min readkrayush1109.hashnode.dev