From 4f1ab4944097030be95296f0ab07655f978e782e Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:25:39 +0000 Subject: [PATCH] test(transformer/class-properties): add `output.js` files to override fixtures (#7777) In two of the overridden text fixtures for class properties transform, there was no `output.js` file because what was overridden was just `options.json` and `update_fixtures.js` script then generated new output files using Babel with the new options. That was fine, but doesn't work with #7771. So add `output.js` files to the these overrides too. --- .../test/fixtures/private-loose/foobar/output.js | 12 ++++++++++++ .../test/fixtures/public-loose/foobar/output.js | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js create mode 100644 tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js diff --git a/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js new file mode 100644 index 0000000000000..1f630a5394cca --- /dev/null +++ b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js @@ -0,0 +1,12 @@ +var _scopedFunctionWithThis = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis"); +class Child extends Parent { + constructor() { + super(); + Object.defineProperty(this, _scopedFunctionWithThis, { + writable: true, + value: () => { + this.name = {}; + } + }); + } +} diff --git a/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js new file mode 100644 index 0000000000000..05143dde05be1 --- /dev/null +++ b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js @@ -0,0 +1,8 @@ +class Child extends Parent { + constructor() { + super(); + this.scopedFunctionWithThis = () => { + this.name = {}; + }; + } +}