We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3f362 commit a9a07d4Copy full SHA for a9a07d4
transforms/convert-module-for-to-setup-test/index.js
@@ -470,7 +470,8 @@ module.exports = function(file, api) {
470
.map(path => path.parent)
471
.replaceWith(p => {
472
let body = p.node.expression.arguments[0].body;
473
- return body.body;
+
474
+ return body.body || j.expressionStatement(body);
475
});
476
477
if (replacements.length > 0) {
0 commit comments