Documentaci贸n oficial sobre Jest
- Instalaciones de desarrollo (super test es 煤til para probar Express)
npm install -D jest @types/jest ts-jest supertest
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
server { | |
listen 80; | |
sendfile on; | |
default_type application/octet-stream; | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_disable "MSIE [1-6]\."; | |
gzip_min_length 256; | |
gzip_vary on; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>ReactApp</title> | |
<!-- Cargar React --> | |
<script crossorigin | |
src="https://unpkg.com/react@16/umd/react.production.min.js"> |
function parseJwt (token) { | |
var base64Url = token.split('.')[1]; | |
var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
return JSON.parse(window.atob(base64)); | |
}; |