Skip to content

Commit 2854541

Browse files
committed
Introduce failing test case for emberjs#423, emberjs#425
1 parent 886e32e commit 2854541

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

node-tests/addon-test.js

+23
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,29 @@ describe("ember-cli-babel", function () {
135135
})
136136
);
137137

138+
it.only(
139+
"can compile decorators",
140+
co.wrap(function* () {
141+
input.write({
142+
"foo.js": `import Component from '@ember/component';\nimport { tracked } from '@glimmer/tracking';\nexport default class Foo extends Controller { @tracked thisIsTracked = true; }`,
143+
});
144+
145+
this.addon.project.targets = {
146+
browsers: ["last 2 chrome versions"],
147+
};
148+
149+
subject = this.addon.transpileTree(input.path(), {});
150+
151+
output = createBuilder(subject);
152+
153+
yield output.build();
154+
console.log(output.read());
155+
expect(output.read()["foo.js"]).not.to.include(
156+
"Decorating class property failed"
157+
);
158+
})
159+
);
160+
138161
describe("ember modules API polyfill", function () {
139162
it(
140163
"does not transpile deprecate debug tooling import paths",

0 commit comments

Comments
 (0)