mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
feat(cli): bump jest v29 (#11117)
This commit is contained in:
@@ -29,6 +29,10 @@ const DEFAULT_CONFIG = {
|
||||
],
|
||||
coverageReporters: ['html', 'lcov', 'text-summary'],
|
||||
coverageDirectory: './test/coverage',
|
||||
testEnvironmentOptions: {
|
||||
// https://stackoverflow.com/questions/72428323/jest-referenceerror-vue-is-not-defined
|
||||
customExportConditions: ['node', 'node-addons'],
|
||||
},
|
||||
};
|
||||
|
||||
function readRootConfig() {
|
||||
|
@@ -87,6 +87,8 @@ module.exports = {
|
||||
if (isJsxFile(path)) {
|
||||
code = transformJsx(code, path);
|
||||
}
|
||||
return transformScript(code);
|
||||
return {
|
||||
code: transformScript(code)
|
||||
};
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user