File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
packages/@ember/-internals/metal/tests/tracked Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,27 @@ jobs:
100
100
- name : " Production build, with optional features"
101
101
BUILD : " production"
102
102
ENABLE_OPTIONAL_FEATURES : " true"
103
+ - name : " Stable decorators"
104
+ VITE_STABLE_DECORATORS : " true"
103
105
104
106
steps :
105
107
- uses : actions/checkout@v4
106
108
- uses : ./.github/actions/setup
107
109
- name : build
108
110
run : pnpm vite build --mode=${{ matrix.BUILD || 'development' }}
111
+ env :
112
+ ALL_DEPRECATIONS_ENABLED : ${{ matrix.ALL_DEPRECATIONS_ENABLED }}
113
+ OVERRIDE_DEPRECATION_VERSION : ${{ matrix.OVERRIDE_DEPRECATION_VERSION }}
114
+ ENABLE_OPTIONAL_FEATURES : ${{ matrix.ENABLE_OPTIONAL_FEATURES }}
115
+ RAISE_ON_DEPRECATION : ${{ matrix.RAISE_ON_DEPRECATION }}
116
+ VITE_STABLE_DECORATORS : ${{ matrix.VITE_STABLE_DECORATORS }}
109
117
- name : test
110
118
env :
111
119
ALL_DEPRECATIONS_ENABLED : ${{ matrix.ALL_DEPRECATIONS_ENABLED }}
112
120
OVERRIDE_DEPRECATION_VERSION : ${{ matrix.OVERRIDE_DEPRECATION_VERSION }}
113
121
ENABLE_OPTIONAL_FEATURES : ${{ matrix.ENABLE_OPTIONAL_FEATURES }}
114
122
RAISE_ON_DEPRECATION : ${{ matrix.RAISE_ON_DEPRECATION }}
123
+ VITE_STABLE_DECORATORS : ${{ matrix.VITE_STABLE_DECORATORS }}
115
124
116
125
run : pnpm test
117
126
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ moduleFor(
43
43
assert . equal ( validateTag ( tag , snapshot ) , true ) ;
44
44
}
45
45
46
- [ `@test autotracking should work with initializers` ] ( assert ) {
46
+ [ `@test autotracking should work with initializers (${ import . meta. env . VITE_STABLE_DECORATORS ? 'stable' : 'legacy' } decorators)` ] (
47
+ assert
48
+ ) {
47
49
class Tracked {
48
50
@tracked first = `first: ${ this . second } ` ;
49
51
@tracked second = 'second' ;
You can’t perform that action at this time.
0 commit comments