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

Method create

factories/core/test_utils.ts:49–61  ·  view source on GitHub ↗
(ignitorOrAppRoot: URL | Ignitor, options?: IgnitorOptions)

Source from the content-addressed store, hash-verified

47 */
48 create(appRoot: URL, options?: IgnitorOptions): TestUtils
49 create(ignitorOrAppRoot: URL | Ignitor, options?: IgnitorOptions): TestUtils {
50 if (ignitorOrAppRoot instanceof Ignitor) {
51 return new TestUtils(ignitorOrAppRoot.createApp('test'))
52 }
53
54 return new TestUtils(
55 new IgnitorFactory()
56 .withCoreConfig()
57 .withCoreProviders()
58 .create(ignitorOrAppRoot, options!)
59 .createApp('console')
60 )
61 }
62}

Callers

nothing calls this directly

Calls 3

createAppMethod · 0.80
withCoreProvidersMethod · 0.80
withCoreConfigMethod · 0.80

Tested by

no test coverage detected