test_runner: reimplement `assert.ok` to allow stack parsing
Fixes #54760 (closed) Ref: https://github.com/nodejs/help/issues/4461
By default, assert.ok
uses itself as a reference for where to start checking the stacktrace. In the test runner, there is a wrapper around this call (for test.plan
), so it can't use itself as a reference.
This PR pulls out innerOk
into it's own file, allowing the test runner to re-implement assert.ok
using it's own function as a reference for the stacktrace.
(Hopefully that makes sense).