diff --git a/jest.config.base.ts b/jest.config.base.ts index 74acad45..f27657c7 100644 --- a/jest.config.base.ts +++ b/jest.config.base.ts @@ -26,6 +26,7 @@ const config: Config.InitialOptions = { moduleFileExtensions: ['node', 'js', 'json', 'ts'], moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix }), prettierPath: `/${NODE_MODULES}/prettier`, + reporters: ['default', 'jest-github-reporter'], rootDir: '../..', roots: ['/__mocks__', '/packages'], setupFiles: ['/__tests__/config/setup.ts'], diff --git a/scripts/jest.sh b/scripts/jest.sh index 7213fdc9..92307e15 100755 --- a/scripts/jest.sh +++ b/scripts/jest.sh @@ -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 $@