mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
20 lines
565 B
JavaScript
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";
|