MCPcopy
hub / github.com/adonisjs/core / run

Method run

src/ignitor/test.ts:67–73  ·  view source on GitHub ↗

* Runs a callback after starting the app * * @param callback - Test execution callback function

(callback: (app: ApplicationService) => Promise<void> | void)

Source from the content-addressed store, hash-verified

65 * @param callback - Test execution callback function
66 */
67 async run(callback: (app: ApplicationService) => Promise<void> | void) {
68 const app = this.#ignitor.createApp('test')
69 await app.init()
70 await app.boot()
71 await app.start(this.#configureCallback)
72 await callback(app)
73 }
74}

Callers

nothing calls this directly

Calls 3

createAppMethod · 0.80
bootMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected