Everything else remains unchanged except for the yellow-outlined fields.
The --experimental-vm-modules
won't always be necessary, but as of July 2023 node
does not support import
ing esbuild modules in jest without it.
After you click "Ok," you can now invoke any of the tests within plugin.tests.js
:
You can set breakpoints anywhere by clicking in the left gutter. Setting breakpoints, inspecting state, and issuing new commands in the midst of existing functions is the key to iterating quickly as you build your plugin.