DevOpsReminders / DevOpsReminders/api-devopsreminders
`test:all` mocha failures
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
running `yarn test:unit` or `yarn test:e2e` work fine but running `yarn test` throws errors:
```sh
1) log in
"before all" hook in "log in":
QueryFailedError: SQLITE_ERROR: table "users" already exists
at handler (node_modules/typeorm/src/driver/sqlite/SqliteQueryRunner.ts:113:26)
at replacement (node_modules/sqlite3/lib/trace.js:25:27)
at Statement.errBack (node_modules/sqlite3/lib/sqlite3.js:15:21)
```
It seems we are missing an `after` hook or maybe the typeormHelper has bugs?
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Execute yarn test:unit, yarn test:e2e e yarn test para reproduzir a falha e, em seguida, inspecione a configuração dos testes em torno de typeormHelper e seus hooks. Determine por que a tabela users do SQLite persiste entre as suítes; considera-se concluído quando yarn test for concluído sem o erro table-already-exists, enquanto os comandos de teste individuais continuarem passando.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- sqlite, typescript
- Domínio
- databases, testing
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 42/100