aelbore / esbuild-jest

A Jest transformer using esbuild
519 stars 51 forks source link

Upgrade to Jest v27 #50

Closed ZauberNerd closed 3 months ago

ZauberNerd commented 3 years ago

This commit upgrades the project to Jest v27. The config argument to the Transformer.process() method has been moved into the TransformOptions.

wmertens commented 2 years ago

I'm using this with jest 28 and not encountering any issues, so I suppose this can be closed?

EDIT: ah - I'm not sure if I'm using the config actually. I'm using this configuration, and it does honor the format option

    transform: {
        '^.+\\.[jt]sx?$': [
            'esbuild-jest',
            {sourcemap: true, target: 'node18', format: 'esm'},
        ],
    },
p0wl commented 1 year ago

@aelbore what's missing here to get this merged?

etroynov commented 7 months ago

Fixed https://github.com/etroynov/esbuild-jest/pull/4