Execute command after test run passes.
Requires jest@23+
.
To use jest-watch-on-pass
,
add it to the watchPlugins
section of the Jest configuration:
{
"jest": {
"watchPlugins": [
["jest-watch-on-pass", { "exec": "npm run build" }], // or
["jest-watch-on-pass", { "exec": "npm run build", "runWhileFiltered": true }]
]
}
}