AKAyush Kumarinnamaste-react.hashnode.dev·Oct 22, 2024 · 1 min readVitest : (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...00
AKAyush Kumarinnamaste-react.hashnode.dev·Oct 7, 2024 · 3 min read🧪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...00
AKAyush Kumarinnamaste-react.hashnode.dev·Sep 22, 2024 · 1 min readHigher 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) => { ...00
AKAyush Kumarinnamaste-react.hashnode.dev·Sep 1, 2024 · 1 min readAnimation: GSAP, srollTrigger, Locomotive,GSAP,ScrollTrigger GitHub link (04 onwards) Sarthak Bhaiya- GSAP, ScrollTrigger (gsap folder)00
AKAyush Kumarinkrayush1109.hashnode.dev·Aug 15, 2024 · 6 min readPassport.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...01T