Re:Deep introduction to class decorators in TypeScript
by magicalist on Tuesday February 15, 2022 @11:23PM
(#30356339)
But decorators aren't a JavaScript feature, that's the point of this comment thread.
Some form of them might eventually be a JavaScript feature, but anything using them now is potentially incompatible with that future form.
Re:Deep introduction to class decorators in TypeScript
by davidmurdoch on Wednesday February 16, 2022 @11:51AM
(#30362323)
Oh yeah, sorry, I shouldn't have worded it that way. the decorators are being transpiled at runtime to standard JS, so why shouldn't tooling like jest be able to work with that?
But yes, I think jest, a "JavaScript testing framework designed to ensure correctness of any JavaScript codebase" should support JavaScript features, even the ones you don't like the provenance of.