Open benjii66 opened 7 months ago
[!TIP] The solution was to force babel to run only in the test environment :
module.exports = function(api) {
api.cache(true); //that's for the Babel's cache possible issue
const isTest = api.env('test'); //for the test environment
if (isTest) {
return {
presets: [
yourpresets
],
};
}
return {};
};
my terminal returned this :