Giter VIP home page Giter VIP logo

camilodinardo / material-kit-react-main Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 5.31 MB

Proyecto echo a partir de un Template de mui con: carrito de compras creado con useContext y useReducer. BD firebase de los productos y usuarios . authenticacion de usuarios en fb (registro y login) , forms con react-hook-form y diferentes metodos de registro. Paypal como metodo de pago. multilenguaje

Home Page: https://material-kit-react-main.netlify.app/

License: MIT License

HTML 0.76% JavaScript 97.38% Dockerfile 1.59% Shell 0.27%
carrito-de-compras depcheck fetch firebase firebase-database firebase-storage iconify muiv5 template usecontext-hook

material-kit-react-main's Introduction

license

Free React Admin Dashboard made with Material-UI components and React.

preview

Minimal Free Minimal
7 Demo pages 50+ demo pages
- ✓ Multi-language
- ✓ Dark/Light Mode 🌓
- More components
- ✓ Next.js version
- ✓ TypeScript version
- ✓ Design files (Figma & Sketch)

Page demo

Getting started

  • Recommended node js 14.x and npm 6+. (suggestion v14.17.3 / v16.15.0)
  • Install dependencies: npm install / yarn install
  • Start the project: npm run start / yarn start

License

Distributed under the MIT License. See LICENSE for more information.

Contact us

Email Us: [email protected]

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
yarn add --dev whatwg-fetch
  1. Actualizar los scripts del package.json
"scripts: {
  ...
  "test": "jest --watchAll"
  1. Crear la configuración de babel babel.config.js
module.exports = {
    presets: [
        [ '@babel/preset-env', { targets: { esmodules: true } } ],
        [ '@babel/preset-react', { runtime: 'automatic' } ],
    ],
};
  1. Opcional, pero eventualmente necesario, crear Jest config y setup:

jest.config.js

module.exports = {
    testEnvironment: 'jest-environment-jsdom',
    setupFiles: ['./jest.setup.js']
}

jest.setup.js

// En caso de necesitar la implementación del FetchAPI
import 'whatwg-fetch'; // <-- yarn add whatwg-fetch

// En caso de tener problemas con la configuracion visitar la pàgina de https://www.eternaldev.com/blog/testing-a-react-application-with-vitest/

//SI NO FUNCIONA ELIMINAR EL TYPE MODULE DEL PACKAGE.JSON || CAMBIAR LA EXTENSIÓN DEL ARCHIVO POR CJS

material-kit-react-main's People

Contributors

camilodinardo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

romimolina

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.