mapsam / jest-global-report-repro

Global teardown and --outputFile do not work together

Repository from Github https://github.commapsam/jest-global-report-reproRepository from Github https://github.commapsam/jest-global-report-repro

Reproducing an issue with Jest. When globalTeardown is set, and tests are run with --outputFile=, there is not resulting output file.

npx jest --outputFile=report.json

# Determining test suites to run...setup
#  PASS  ./index.test.js
#   ✓ hola mundo (1 ms)
#
# Test Suites: 1 passed, 1 total
# Tests:       1 passed, 1 total
# Snapshots:   0 total
# Time:        0.101 s, estimated 1 s
# Ran all test suites.
# teardown

ls # shows no report.json

About

Global teardown and --outputFile do not work together


Languages

Language:JavaScript 100.0%