3 ms·
I'm a bit paranoid about upgrading after breaking changes in 3.9 removed the ability to stub ES imports with Sinon/Jasmine/etc..., since the section of the rele
by nammi 6y ago
I'm a bit paranoid about upgrading after breaking changes in 3.9 removed the ability to stub ES imports with Sinon/Jasmine/etc..., since the section of the release notes made it sound pretty innocuous: "Getters/Setters are No Longer Enumerable".
https://github.com/microsoft/TypeScript/issues/38568 https://github.com/microsoft/TypeScript/issues/38568
https://github.com/microsoft/TypeScript/pull/32264 https://github.com/microsoft/TypeScript/pull/32264
- nojvek 6y agoThat’s the same behavior as Babel no ?
- nammi 6y agoI have no idea, I don't have experience with Babel. As mentioned in the release notes, this change makes TS conform more closely to ECMAScript, so I don't think it's a bad decision. But it would've been nice to get some warning or error when trying to stub an ES import, rather than the silent failures
- lefrenchy 6y agoHave you found a way around that change? It’s blocked me from upgrading as well.