File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,29 @@ describe("ember-cli-babel", function () {
135
135
} )
136
136
) ;
137
137
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
+
138
161
describe ( "ember modules API polyfill" , function ( ) {
139
162
it (
140
163
"does not transpile deprecate debug tooling import paths" ,
You can’t perform that action at this time.
0 commit comments