You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: re-introduce new constructor validation with gate (#5320)
* chore: re-introduce new constructor validation with gate
* fix: constructor type
* fix: reversed flag
* fix: flag logic
* fix: flag logic, test
* fix: gate naming
* fix: added extra test to please will
// TODO [W-17769475]: Restore this test when we can reliably detect Locker enabled
85
-
xit('should fail when the constructor returns something other than an instance of itself',()=>{
84
+
it('should fail when the constructor returns something other than LightningElement when ENABLE_LEGACY_VALIDATION is falsy and LEGACY_LOCKER_ENABLED is falsy',()=>{
'Invalid component constructor, the class should extend LightningElement.'
91
90
);
92
91
});
92
+
93
+
it('should succeed when the constructor returns something other than LightningElement when ENABLE_LEGACY_VALIDATION is true and LEGACY_LOCKER_ENABLED is falsy',()=>{
it('should succeed when the constructor returns something other than LightningElement when ENABLE_LEGACY_VALIDATION is falsy and LEGACY_LOCKER_ENABLED is true',()=>{
it('should succeed when the constructor returns something other than LightningElement when ENABLE_LEGACY_VALIDATION is falsy and LEGACY_LOCKER_ENABLED is true',()=>{
0 commit comments