Then the clipboard should hold the code of "example.config.js"

Assert what the page last wrote to the clipboard: the code of a code block (all its lines, as they are, without line numbers), or a text it contains. The copy is read from what the page handed the clipboard, which the pack records in every page of the run.

Examples

Then the clipboard should hold the code of "example.config.js"
And the clipboard should contain "module.exports = {"
Then clipboard should hold the code of "server.js"
And the clipboard should contain "port: 8080"
Then the clipboard should hold the code of "brew install example"

Pattern

Then(/^(?:the )?clipboard should (hold the code of|contain) "([^"]*)?"$/, …)

Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.