Skip to content

Commit

Permalink
test: use jest-github-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Sep 15, 2021
1 parent 5044e66 commit dcba004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const config: Config.InitialOptions = {
moduleFileExtensions: ['node', 'js', 'json', 'ts'],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix }),
prettierPath: `<rootDir>/${NODE_MODULES}/prettier`,
reporters: ['default', 'jest-github-reporter'],
rootDir: '../..',
roots: ['<rootDir>/__mocks__', '<rootDir>/packages'],
setupFiles: ['<rootDir>/__tests__/config/setup.ts'],
Expand Down
3 changes: 2 additions & 1 deletion scripts/jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
#
# - https://github.com/entropitor/dotenv-cli#cascading-env-variables
# - https://jestjs.io/docs/next/cli
# - https://github.com/hipstersmoothie/jest-github-reporter

# 1. Clear terminal
# 2. Set test environment variabls and run Jest
clear
dotenv -c test -- jest --passWithNoTests $@
dotenv -c test -- jest --passWithNoTests --testLocationInResults $@

0 comments on commit dcba004

Please sign in to comment.