Skip to content

Commit

Permalink
Introduce failing test case for emberjs#423, emberjs#425
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho committed Dec 16, 2021
1 parent 886e32e commit 2854541
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions node-tests/addon-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,29 @@ describe("ember-cli-babel", function () {
})
);

it.only(
"can compile decorators",
co.wrap(function* () {
input.write({
"foo.js": `import Component from '@ember/component';\nimport { tracked } from '@glimmer/tracking';\nexport default class Foo extends Controller { @tracked thisIsTracked = true; }`,
});

this.addon.project.targets = {
browsers: ["last 2 chrome versions"],
};

subject = this.addon.transpileTree(input.path(), {});

output = createBuilder(subject);

yield output.build();
console.log(output.read());
expect(output.read()["foo.js"]).not.to.include(
"Decorating class property failed"
);
})
);

describe("ember modules API polyfill", function () {
it(
"does not transpile deprecate debug tooling import paths",
Expand Down

0 comments on commit 2854541

Please sign in to comment.