标签: javascript
jest-snapshot has this line
const {currentTestName, isNot, snapshotState}: MatcherState = this;
虽然解构部分很好,但我不认为: MatcherState =语法是合法的javascript。这是ES.Next中的新内容还是某种类型的注释和流程?
: MatcherState =