Files
meteor/tools/tests/apps/modules-modern/packages/modules-test-plugin/modules-test-plugin.js
Nacho Codoñer c89cac7c44 clean
2025-05-26 22:41:00 +02:00

20 lines
565 B
JavaScript

import { strictEqual } from "assert";
s
// Test that the SWC configuration in .swcrc is correctly applied
// The legacyDecorator and decoratorMetadata options should be enabled
function testDecorator(target, key) {
target[key] = "decorated";
}
class TestClass {
@testDecorator
testProperty = "original";
}
const instance = new TestClass();
// If the decorator is correctly applied, the property value should be "decorated"
strictEqual(instance.testProperty, "decorated");
export { default as one } from "./one";
export { default as array } from "./array";