Documentación oficial sobre Jest
- Instalaciones de desarrollo (super test es útil para probar Express)
npm install -D jest @types/jest ts-jest supertest
| @IsString() | |
| @MinLength(6) | |
| @MaxLength(50) | |
| @Matches( | |
| /(?:(?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, { | |
| message: 'The password must have a Uppercase, lowercase letter and a number' | |
| }) | |
| password: string; |
Documentación oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
Más información - Docs Oficiales
npm i -D typescript @types/node
| version: '3' | |
| services: | |
| myDB: | |
| image: postgres:15.3 | |
| container_name: my-database | |
| restart: always | |
| ports: | |
| - 5432:5432 | |
| environment: |
| import { createSlice } from '@reduxjs/toolkit'; | |
| export const templateSlice = createSlice({ | |
| name: 'name', | |
| initialState: { | |
| counter: 10 | |
| }, | |
| reducers: { | |
| increment: (state, /* action */ ) => { | |
| //! https://react-redux.js.org/tutorials/quick-start |