salesforce / sfdx-lwc-jest

Run Jest against LWC components in SFDX workspace environment
MIT License
164 stars 81 forks source link

allow `jest.config.mjs` and `jest.config.cjs` jest config files #314

Closed lukethacoder closed 1 year ago

lukethacoder commented 1 year ago

addresses https://github.com/salesforce/sfdx-lwc-jest/issues/313

allows the cli to recognize jest.config.mjs and jest.config.cjs as valid jest config files. The .(mjs|cjs) extensions are currently not supported.

I have explored adding support for .json and .ts but have chosen not to include.

nolanlawson commented 1 year ago

Thank you!!