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

Method merge

factories/stubs.ts:63–66  ·  view source on GitHub ↗

* Merge custom factory parameters to override defaults. * This allows you to provide a custom application instance. * * @param params - Parameters to merge * @param params.app - Custom application service instance * * @example * ```ts * const customApp = new AppFactory().crea

(params: Partial<FactoryParameters>)

Source from the content-addressed store, hash-verified

61 * ```
62 */
63 merge(params: Partial<FactoryParameters>): this {
64 this.#parameters = Object.assign(this.#parameters, params)
65 return this
66 }
67
68 /**
69 * Prepare a stub template with the provided data and return the processed content.

Callers 13

providers.spec.tsFile · 0.45
hash.spec.tsFile · 0.45
kernel.spec.tsFile · 0.45
make_test.spec.tsFile · 0.45
http.spec.tsFile · 0.45
repl.spec.tsFile · 0.45
edge.spec.tsFile · 0.45
vinejs.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected