jest v26.1.0 Release Notes

Release Date: 2020-06-23 // 13 days ago
  • 🔋 Features

    • 🤡 [jest-mock] Export Mock, MockInstance, SpyInstance types (#10138)
    • 👍 [jest-config] Support config files exporting (async) functions (#10001)
    • [jest-cli, jest-core] Add --selectProjects CLI argument to filter test suites by project name (#8612)
    • [jest-cli, jest-init] Add coverageProvider to jest --init prompts (#10044)

    🛠 Fixes

    • [jest-console] getConsoleOutput to receive global stack trace config and use it to format stack trace (#10081)
    • [jest-jasmine2] Stop adding : after an error that has no message (#9990)
    • [jest-diff] Control no diff message color with commonColor in diff options (#9997)
    • [jest-snapshot] Fix TypeScript compilation (#10008)

    🚧 Chore & Maintenance

    • 📄 [docs] Correct confusing filename in enableAutomock example (#10055)
    • 🍱 [jest-core] 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (#10000)
    • [jest-core, jest-reporters, jest-test-result, jest-types] Cleanup displayName type (#10049)
    • [jest-runtime] Jest-internal sandbox escape hatch (#9907)
    • ⚡️ [jest-fake-timers] Update now param type to support Date in addition to number. (#10169)
    • 🚚 [docs] Add param to setSystemTime docs and remove preceding period from it and getRealSystemTime (#10169)
    • [jest-snapshot, jest-util] Replace make-dir with fs.mkdir (#10136)

    🐎 Performance

    • [jest-core, jest-transform, jest-haste-map] Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (#10131)

Previous changes from v26.0.1

  • 🛠 Fixes

    • [jest-circus] Backward compatibility for deprecated DescribeBlock.tests to not break e.g. Detox reporter