MCPcopy
hub / github.com/mswjs/msw / printSuccessMessage

Function printSuccessMessage

cli/init.js:144–154  ·  view source on GitHub ↗

* @param {Array } paths

(paths)

Source from the content-addressed store, hash-verified

142 * @param {Array<string>} paths
143 */
144function printSuccessMessage(paths) {
145 // eslint-disable-next-line no-console
146 console.log(`
147${colors.green('Worker script successfully copied!')}
148${paths.map((path) => colors.gray(` - ${path}\n`))}
149Continue by describing the network in your application:
150
151
152${colors.red(colors.bold('https://mswjs.io/docs/quick-start'))}
153`)
154}
155
156function printFailureMessage(pathsWithErrors) {
157 // eslint-disable-next-line no-console

Callers 1

initFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…