Jest

Jest + Eslint で "context" is not defined(no-undef) で怒られたら

通常、Jestのcontextはglobalで定義してたりするので、ESlintのno-undefで怒られる。そのファイルのなかで const context とかしてないので、「contextってなんだ!」みたいなことですよね。 なので、ESlintの設定で、context という変数はglobalで定義され…