MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / writeToFile

Method writeToFile

lib/helper/FileSystem.js:70–72  ·  view source on GitHub ↗

* Writes text to file * @param {string} name * @param {string} text

(name, text)

Source from the content-addressed store, hash-verified

68 * @param {string} text
69 */
70 writeToFile(name, text) {
71 fs.writeFileSync(path.join(this.dir, name), text)
72 }
73
74 /**
75 * Checks that file exists

Callers 1

FileSystem_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected