Open ravgeetdhillon opened 2 years ago
I remove the esbuildJestOptions
config and works with default configuration
plugins: [
{
plugin: CracoEsbuildPlugin,
options: {
esbuildLoaderOptions: {
// Optional. Defaults to auto-detect loader.
loader: 'jsx', // Set the value to 'tsx' if you use typescript
target: 'es2015',
},
esbuildMinimizerOptions: {
// Optional. Defaults to:
target: 'es2015',
css: true, // if true, OptimizeCssAssetsWebpackPlugin will also be replaced by esbuild.
},
skipEsbuildJest: false, // Optional. Set to true if you want to use babel for jest tests,
},
},
]
When I run
craco test "--watchAll=false"
, I get the following error in one of my tests:Here's how my
craco.config.js
looks like:If I set
skipEsbuildJest
totrue
, then all the tests pass.Can you tell me if I'm doing something wrong or if it's a bug in the package?