Skip to content

[Bug]: transform does not accept file: urls #15153

@latin-1

Description

@latin-1

Version

29.7.0

Steps to reproduce

export default {
  transform: {
    "\\.[jt]sx?$": import.meta.resolve("babel-jest"),
  },
};

Expected behavior

Work without errors.

Actual behavior

Module file:///.../node_modules/babel-jest/build/index.js in the transform option was not found.

Additional context

No response

Environment

System:
    OS: Linux 6.9 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 6800U with Radeon Graphics
  Binaries:
    Node: 22.3.0 - ~/.proto/shims/node
    Yarn: 4.3.1 - ~/.proto/shims/yarn
    npm: 10.8.1 - ~/.proto/shims/npm
    pnpm: 9.4.0 - ~/.proto/shims/pnpm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions