📝

vscodeのJestでsave時にテスト実行しない

2024/01/14に公開

前提

vscodeの拡張機能であるJestではsave時にtestが実行されるが、pcが貧弱だとvscodeが重くなったりして辛い。

By default, the extension uses jest watch mode that automatically runs tests upon related file changes. In addition, users can also trigger individual tests/suites interactively:

結論

setting.jsonに "jest.autoRun": "off" を追加する。

参考

Discussion