Skip to content

use astTransformers for import polyfills wont break cache #2753

@xiejay97

Description

@xiejay97

🐛 Bug Report

I have a custom transformer that add polyfills for all test file.

But after modify transformer and rerun test. The cache not clear, I have to run jest --clearCache and all things as expected.

For example, I write a error path to polyfills, so that all tests should throw error.
But just polyfills test file fail (which top has import '@polyfills';), others passed test.
This behavior really strange.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions