diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/conflicting-api-properties-with-getter-setter/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/conflicting-api-properties-with-getter-setter/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/conflicting-api-properties-with-method/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/conflicting-api-properties-with-method/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/detecting-@api-on-both-getter-and-a-setter-should-produce-an-error/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/detecting-@api-on-both-getter-and-a-setter-should-produce-an-error/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/class/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/class/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/is/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/is/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/slot/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/slot/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/style/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/disallowed-props/style/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/does-not-allow-computed-api-getters-and-setters/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/does-not-allow-computed-api-getters-and-setters/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/does-not-throw-error-if-property-name-is-data/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/does-not-throw-error-if-property-name-is-data/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/does-not-throw-if-property-name-prefixed-with-aria/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/does-not-throw-if-property-name-prefixed-with-aria/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/duplicate-api-properties/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/duplicate-api-properties/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/single-@api-getter-on-one-class-member-should-not-conflict-with-@api-setter-on-another/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/single-@api-getter-on-one-class-member-should-not-conflict-with-@api-setter-on-another/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-correct-error-if-property-name-is-maxlength/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-correct-error-if-property-name-is-maxlength/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-default-value-is-true/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-default-value-is-true/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-is-ambiguous/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-is-ambiguous/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-is-part/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-is-part/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-prefixed-with-data/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-prefixed-with-data/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-prefixed-with-on/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-error-if-property-name-prefixed-with-on/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-when-combined-with-@track/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/throws-when-combined-with-@track/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transform-complex-attributes/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transform-complex-attributes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transform-nested-classes/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transform-nested-classes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transform-pairs-of-setter-and-getter/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transform-pairs-of-setter-and-getter/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transforms-public-getters/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transforms-public-getters/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transforms-public-methods/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transforms-public-methods/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transforms-public-props/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/transforms-public-props/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/w-9927596-public-getter-setter-with-duplicate-property/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/w-9927596-public-getter-setter-with-duplicate-property/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/w-9927596-public-property-with-duplicate-getter-setter/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/w-9927596-public-property-with-duplicate-getter-setter/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allow-to-remap-the-import-to-lightningelement/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allow-to-remap-the-import-to-lightningelement/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allows-importing-supported-apis-from-@lwc-engine-core/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allows-importing-supported-apis-from-@lwc-engine-core/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allows-importing-supported-apis-from-@lwc-engine-dom/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allows-importing-supported-apis-from-@lwc-engine-dom/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allows-importing-supported-apis-from-@lwc-engine-server/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/allows-importing-supported-apis-from-@lwc-engine-server/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/does-not-insert-render-method-when-extending-from-legacy-engine-element/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/does-not-insert-render-method-when-extending-from-legacy-engine-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/export-engine-star/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/export-engine-star/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/import-engine-default-and-named/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/import-engine-default-and-named/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/import-engine-default/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/import-engine-default/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/import-engine-star/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/import-engine-star/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/inject-render-method/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/inject-render-method/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/keep-the-render-method-if-present/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/keep-the-render-method-if-present/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/only-inject-render-in-the-exported-class/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/only-inject-render-in-the-exported-class/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-register-decorators-for-anonymous-class-declarations/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-register-decorators-for-anonymous-class-declarations/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-register-decorators-for-anonymous-class-expressions/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-register-decorators-for-anonymous-class-expressions/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-a-decorator-is-dereferenced/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-a-decorator-is-dereferenced/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-a-decorator-is-used-as-a-member-expression/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-a-decorator-is-used-as-a-member-expression/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-a-decorator-is-used-on-a-class/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-a-decorator-is-used-on-a-class/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-an-global-decorator-is-used-on-class-field/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-an-global-decorator-is-used-on-class-field/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-an-global-decorator-is-used-on-class-methods/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-if-an-global-decorator-is-used-on-class-methods/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-when-api-decorator-was-not-imported-from-lwc/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-when-api-decorator-was-not-imported-from-lwc/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-when-track-decorator-was-not-imported-from-lwc/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-when-track-decorator-was-not-imported-from-lwc/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-when-wire-decorator-was-not-imported-from-lwc/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-throw-when-wire-decorator-was-not-imported-from-lwc/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-transform-decorators-on-classdeclaration-in-a-large-input-file/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-transform-decorators-on-classdeclaration-in-a-large-input-file/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-transform-decorators-on-classexpression-in-a-large-input-file/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/should-transform-decorators-on-classexpression-in-a-large-input-file/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/throws-if-a-decorator-is-used-as-a-function/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/throws-if-a-decorator-is-used-as-a-function/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-not-register-decorators-if-anonymous-class-has-no-superclass/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-not-register-decorators-if-anonymous-class-has-no-superclass/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-not-register-decorators-if-named-class-has-no-superclass/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-not-register-decorators-if-named-class-has-no-superclass/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-register-decorators-for-named-class-that-extends-non-lightning-element/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/latest/should-register-decorators-for-named-class-that-extends-non-lightning-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-named-class-that-extends-non-lightning-element/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-named-class-that-extends-non-lightning-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-an-alias-of-an-export/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-an-alias-of-an-export/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-both-default-and-importing-the-entire-contents-for-a-module/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-both-default-and-importing-the-entire-contents-for-a-module/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-multiple-aliases-of-the-same-export/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-multiple-aliases-of-the-same-export/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-multiple-defaults-of-the-same-export/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-multiple-defaults-of-the-same-export/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-the-simple-case/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-handle-the-simple-case/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-support-importing-names-and-default-2/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-support-importing-names-and-default-2/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-support-importing-names-and-default/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-support-importing-names-and-default/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-support-importing-the-entire-contents-for-a-module/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dedupe-imports/should-support-importing-the-entire-contents-for-a-module/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/check-validation-for-strict/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/check-validation-for-strict/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/passthough-with-no-config/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/passthough-with-no-config/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader-multiple-imports/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader-multiple-imports/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/unchanged-dynamic-import-in-strict-mode/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/unchanged-dynamic-import-in-strict-mode/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/import-scoped-stylesheet/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/import-scoped-stylesheet/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-add-observed-fields-in-class-expression/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-add-observed-fields-in-class-expression/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-be-added-to-the-registercomponentcall-when-a-field-is-not-decorated-with-@api-@track-or-@wire/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-be-added-to-the-registercomponentcall-when-a-field-is-not-decorated-with-@api-@track-or-@wire/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-not-observe-changes-in-a-static-fields/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-not-observe-changes-in-a-static-fields/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-not-observe-changes-in-computed-fields/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-not-observe-changes-in-computed-fields/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-not-process-reserved-words-as-field-when-decorated-with-@api-@track-or-@wire/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-not-process-reserved-words-as-field-when-decorated-with-@api-@track-or-@wire/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-transform-export-default-that-is-not-a-class/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/observed-fields/should-transform-export-default-that-is-not-a-class/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/throws-if-track-decorator-is-applied-to-a-class-method/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/throws-if-track-decorator-is-applied-to-a-class-method/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/throws-if-track-decorator-is-applied-to-a-getter/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/throws-if-track-decorator-is-applied-to-a-getter/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/throws-if-track-decorator-is-applied-to-a-setter/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/throws-if-track-decorator-is-applied-to-a-setter/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/transform-track-decorator-field/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/transform-track-decorator-field/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/transform-track-decorator-preserve-initial-value/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/track-decorator/transform-track-decorator-preserve-initial-value/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/config-function-should-use-bracket-notation-for-param-when-its-definition-has-invalid-identifier-as-segment/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/config-function-should-use-bracket-notation-for-param-when-its-definition-has-invalid-identifier-as-segment/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/config-function-should-use-bracket-notation-when-param-definition-has-empty-segment/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/config-function-should-use-bracket-notation-when-param-definition-has-empty-segment/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-accepts-a-function-identifier-as-first-parameter/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-accepts-a-function-identifier-as-first-parameter/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-accepts-a-member-expression/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-accepts-a-member-expression/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-accepts-an-optional-config-object-as-second-parameter/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-accepts-an-optional-config-object-as-second-parameter/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-an-imported-identifier-as-first-parameter/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-an-imported-identifier-as-first-parameter/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-an-object-as-second-parameter/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-an-object-as-second-parameter/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-wire-adapter-as-first-parameter/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-wire-adapter-as-first-parameter/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-wire-adapter-to-be-imported/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-expects-wire-adapter-to-be-imported/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-rejects-nested-member-expression/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-rejects-nested-member-expression/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/ignores-object-method/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/ignores-object-method/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/ignores-spread-element/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/ignores-spread-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/should-not-throw-when-using-2-separate-wired-decorators/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/should-not-throw-when-using-2-separate-wired-decorators/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-expression/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-expression/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-let-variable/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-let-variable/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-regexp-literal/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-regexp-literal/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-template-literal/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-computed-prop-is-template-literal/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-using-2-wired-decorators/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-using-2-wired-decorators/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-wired-method-is-combined-with-@api/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-wired-method-is-combined-with-@api/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-wired-property-is-combined-with-@api/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-wired-property-is-combined-with-@api/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-wired-property-is-combined-with-@track/expected.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/throws-when-wired-property-is-combined-with-@track/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-computed-properties-const-from-obj/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-computed-properties-const-from-obj/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-computed-properties/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-computed-properties/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-multiple-dynamic-params/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-multiple-dynamic-params/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-named-imports-from-static-imports/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-named-imports-from-static-imports/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-numeric-props/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-numeric-props/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-object-properties-as-string-literal/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-object-properties-as-string-literal/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-parameters-with-2-levels-deep--foo.bar/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-parameters-with-2-levels-deep--foo.bar/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-parameters-with-multiple-levels-deep/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-parameters-with-multiple-levels-deep/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-wired-field/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-wired-field/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-wired-method/error.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/transforms-wired-method/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures.spec.ts b/packages/@lwc/engine-server/src/__tests__/fixtures.spec.ts index 18c41d317b..0130ad2a19 100755 --- a/packages/@lwc/engine-server/src/__tests__/fixtures.spec.ts +++ b/packages/@lwc/engine-server/src/__tests__/fixtures.spec.ts @@ -116,7 +116,7 @@ function testFixtures(options?: RollupLwcOptions) { const message = err?.message?.match(/(LWC\d+[^\n]+)/)?.[1]; return { 'expected.html': '', - 'error.txt': message ?? '', + 'error.txt': message, }; } @@ -136,10 +136,12 @@ function testFixtures(options?: RollupLwcOptions) { let result; let err; try { - result = lwcEngineServer!.renderComponent( - module!.tagName, - module!.default, - config?.props ?? {} + result = formatHTML( + lwcEngineServer!.renderComponent( + module!.tagName, + module!.default, + config?.props ?? {} + ) ); } catch (_err: any) { if (_err.name === 'AssertionError') { @@ -153,8 +155,8 @@ function testFixtures(options?: RollupLwcOptions) { }); return { - 'expected.html': result ? formatHTML(result) : '', - 'error.txt': err ?? '', + 'expected.html': result, + 'error.txt': err, }; } ); diff --git a/packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts b/packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts index 3b5eecfe43..dd29069253 100644 --- a/packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts +++ b/packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts @@ -104,31 +104,25 @@ describe.runIf(process.env.TEST_SSR_COMPILER).concurrent('fixtures', () => { const module = (await import(compiledFixturePath)) as FixtureModule; let result; + let error; + try { - result = await serverSideRenderComponent( - module!.tagName, - module!.default, - config?.props ?? {}, - SSR_MODE + result = formatHTML( + await serverSideRenderComponent( + module!.tagName, + module!.default, + config?.props ?? {}, + SSR_MODE + ) ); } catch (err: any) { - return { - [errorFile]: err.message, - [expectedFile]: '', - }; + error = err.message; } - try { - return { - [errorFile]: '', - [expectedFile]: formatHTML(result), - }; - } catch (_err: any) { - return { - [errorFile]: `Test helper could not format HTML:\n\n${result}`, - [expectedFile]: '', - }; - } + return { + [errorFile]: error, + [expectedFile]: result, + }; } ); }); diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/aria-attributes/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/aria-attributes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/at-rules/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/at-rules/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/back-slash/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/back-slash/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/complex-selectors/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/complex-selectors/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-media-query/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-media-query/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-not-at-the-top/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-not-at-the-top/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-url/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-url/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-without-string/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import-without-string/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/css-import/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/data-attributes/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/data-attributes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/deprecated-deep-selector/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/deprecated-deep-selector/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/deprecated-shadow-selector/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/deprecated-shadow-selector/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/dir-attribute/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/dir-attribute/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/dir-pseudo-class-invalid-value/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/dir-pseudo-class-invalid-value/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/dir-pseudo-class/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/dir-pseudo-class/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-host-context-selector-scoped/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-host-context-selector-scoped/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-host-context-selector/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-host-context-selector/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-keyframes/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-keyframes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-root-selector-scoped/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-root-selector-scoped/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-root-selector/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support-root-selector/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-support/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/escape-string-characters/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/escape-string-characters/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/global-html-attributes/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/global-html-attributes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/grave-accents/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/grave-accents/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/host-functional-complex/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/host-functional-complex/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/host-functional/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/host-functional/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/host-with-other-rule/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/host-with-other-rule/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/host/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/host/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/id-selector-in-compound-selector/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/id-selector-in-compound-selector/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/id-selector/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/id-selector/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/import-in-scoped/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/import-in-scoped/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/invalid-css/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/invalid-css/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/keyframes-with-custom-properties/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/keyframes-with-custom-properties/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/keyframes/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/keyframes/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/large-stylesheet/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/large-stylesheet/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/light-dom-scoped/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/light-dom-scoped/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-foreach-attribute-rule/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-foreach-attribute-rule/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-iffalse-attribute-rule/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-iffalse-attribute-rule/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-iftrue-attribute-rule/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-iftrue-attribute-rule/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-iterator-attribute-rule/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-iterator-attribute-rule/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-key-attribute-rule/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-key-attribute-rule/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-similarButAllowed-rule/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/lwc-reserved-similarButAllowed-rule/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/media-query-with-host/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/media-query-with-host/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/media-query/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/media-query/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/multi-line/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/multi-line/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/multi-selectors/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/multi-selectors/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/nester-vars-compounded/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/nester-vars-compounded/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/no-selector-whitespace-inside-braces/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/no-selector-whitespace-inside-braces/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/no-selector-with-whitespace/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/no-selector-with-whitespace/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/no-selector/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/no-selector/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/pseudo-class-functional-selector/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/pseudo-class-functional-selector/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/pseudo-class-selector/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/pseudo-class-selector/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/pseudo-element/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/pseudo-element/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/simple-selectors/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/simple-selectors/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/support-query/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/support-query/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/universal-selector/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/universal-selector/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/unsupported-host-context-selector/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/unsupported-host-context-selector/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/unsupported-root-selector/expected.js b/packages/@lwc/style-compiler/src/__tests__/fixtures/unsupported-root-selector/expected.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/var-function-multiple/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/var-function-multiple/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/var-function-nested/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/var-function-nested/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/var-function/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/var-function/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/var-host-combined/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/var-host-combined/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/var-nested-with-resolver-and-color-name/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/var-nested-with-resolver-and-color-name/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/style-compiler/src/__tests__/fixtures/var-nested-with-resolver/error.json b/packages/@lwc/style-compiler/src/__tests__/fixtures/var-nested-with-resolver/error.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/scripts/test-utils/test-fixture-dir.ts b/scripts/test-utils/test-fixture-dir.ts index 3b30330c86..8434841399 100644 --- a/scripts/test-utils/test-fixture-dir.ts +++ b/scripts/test-utils/test-fixture-dir.ts @@ -137,13 +137,8 @@ export function testFixtureDir( for (const [outputName, content] of Object.entries(outputs)) { const outputPath = path.resolve(dirname, outputName); - try { - if (content === undefined) { - expect(fs.existsSync(outputPath)).toBe(false); - } else { - await expect(content).toMatchFileSnapshot(outputPath); - } + await expect(content ?? '').toMatchFileSnapshot(outputPath); } catch (err) { if (typeof err === 'object' && err !== null) { // Hide unhelpful noise in the stack trace