-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mudança no algoritmo da visão correspondente para considerar tanto di… (
#16) * Mudança no algoritmo da visão correspondente para considerar tanto diretórios quanto arquivos. * Configuração do jest.config.ts. * Usando separadores do sistema operacional para evitar erro com teste unitário. * Favor não usar global teardown. Dá problema com o CI.
- Loading branch information
1 parent
dbfcdfa
commit 73af40d
Showing
6 changed files
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
import type { Config } from '@jest/types'; | ||
export default async (): Promise<Config.InitialOptions> => { | ||
return { | ||
preset: 'ts-jest', | ||
setupFiles: ['dotenv/config'], | ||
verbose: true, | ||
modulePathIgnorePatterns: ['<rootDir>/dist/'], | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
coverageReporters: ['json-summary', 'lcov', 'text', 'text-summary'], | ||
displayName: { | ||
name: 'liquido', | ||
color: 'greenBright' | ||
}, | ||
verbose: true, | ||
setupFiles: ['dotenv/config'], | ||
testMatch: ['**/**/*.test.ts'], | ||
testEnvironment: 'node', | ||
detectOpenHandles: true, | ||
collectCoverage: true, | ||
transform: { '^.+\\.tsx?$': 'ts-jest' }, | ||
globalTeardown: '<rootDir>/testes/jest-globals-teardown.ts', | ||
forceExit: true, | ||
coverageReporters: ['json-summary', 'lcov', 'text', 'text-summary'] | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
liquido.rotaGet(funcao(requisicao, resposta) { | ||
resposta.lmht({ "titulo": "Parciais" }) | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<lmht> | ||
<cabeca> | ||
<titulo>Teste de Parciais</titulo> | ||
</cabeca> | ||
<corpo> | ||
<parcial nome="minha-parcial"> | ||
</corpo> | ||
</lmht> |