AkifumiSato / esbuild-jest-transform

14 stars 9 forks source link

Allow running without a `jest.esbuild.js` #3

Closed gustavopch closed 3 years ago

gustavopch commented 3 years ago

Currently, esbuild-jest-transform crashes when jest.esbuild.js doesn't exist. So it must exist even if only to contain module.exports = {}. The problem is here: https://github.com/AkifumiSato/esbuild-jest-transform/blob/ae425365a06dba3d357b72251f990de70c7071ae/index.ts#L7 I think it could use {} as the default config when that file doesn't exist.

AkifumiSato commented 3 years ago

@gustavopch Fixed in v1.0.8. Thank you for pointing out!