Generate valid TAP output as strings.
const tap = require('tap-strings')
tap.version(13) // => `TAP version 13`
tap.plan(1, 5) // => `1..5`
tap.test(true, 1, `lookin' cool my man`) // => `ok 1 lookin' cool my man`
const todoOutput = tap.todo(false, 2, `everything's groovy`, `Fix this later`)
todoOutput // => `not ok 2 everything's groovy # TODO Fix this later`
tap.skip(true, 3, null, `Don't care`) // => `ok 3 # SKIP Don't care`
tap.bail(`eek`) // => `Bail out! eek`
tap.diagnostic(`yo`) // => `# yo`
const messageOutput = tap.message(`This is totally
a multiline string`)
const expected = ` ---
message: |-
This is totally
a multiline string
...`
messageOutput // => expected