Para generar firma JWT, correr en node:
require('crypto').randomBytes(32).toString('hex')
Luego en el archivo .env asignar la firma a la variable JWT_SECRET.
Se encuentra en este link.
Nuestra API está montada en este link
Para correr las seeds, recuerden que la base de datos tiene que estar limpia, por lo tanto, antes de correr las seed realizar lo siguiente:
yarn sequelize db:migrate:undo:all
yarn sequelize db:migrate
Y luego correr las seeds:
yarn sequelize db:seed:all
Para correr los test ejecutar el comando yarn test
con el flag -u
para
actualizar los snapshots. Por ejemplo:
yarn test -silent -verbose -u