Skip to content

Commit 05118f5

Browse files
committed
Implement the fix
1 parent 32e61fc commit 05118f5

File tree

1 file changed

+5
-0
lines changed
  • transforms/convert-module-for-to-setup-test

1 file changed

+5
-0
lines changed

transforms/convert-module-for-to-setup-test/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ module.exports = function(file, api) {
7777
subject = j.literal(`model:${calleeArguments[0].value}`);
7878
}
7979

80+
this.comments = p.node.comments;
81+
this.trailingComments = p.node.trailingComments;
82+
8083
this.originalSetupType = calleeName;
8184
this.moduleName = moduleName;
8285
this.moduleOptions = options;
@@ -451,6 +454,8 @@ module.exports = function(file, api) {
451454
}
452455
}
453456

457+
moduleInvocation.comments = moduleInfo.comments;
458+
moduleInvocation.trailingComments = moduleInfo.trailingComments;
454459
moduleInfo.moduleInvocation = moduleInvocation;
455460

456461
if (needsHooks === true) {

0 commit comments

Comments
 (0)