diff --git a/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js b/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js index 18cbcb0e7e..7973ee68a0 100644 --- a/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js +++ b/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js @@ -1,7 +1,16 @@ class C { // Output should not use `_initialiseProps` constructor(T) { - this.y = 0; + Object.defineProperty(this, "x", { + enumerable: true, + writable: true, + value: void 0 + }); + Object.defineProperty(this, "y", { + enumerable: true, + writable: true, + value: 0 + }); } }