The VSCode extension codemetrics provides a "close approximation of cyclomatic complexity."
However it keeps flagging up my describe
and it
arrow function blocks in jest tests are overly complex.
I haven't found a setting for treating these differently, or having different rules for different extensions (all of my tests are *.test.js).
I know I can just exclude all tests with the 'exclude' rule, but I don't want to do that.