MCPcopy
hub / github.com/infinitered/gluegun / createRuntime

Function createRuntime

src/core-extensions/template-extension.test.ts:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { Runtime } from '../runtime/runtime'
5
6const createRuntime = () => {
7 const r = new Runtime()
8 r.addCoreExtensions()
9 r.addPlugin(path.join(__dirname, '..', 'fixtures', 'good-plugins', 'generate'))
10 r.addPlugin(path.join(__dirname, '..', 'fixtures', 'good-plugins', 'generate-build'))
11 return r
12}
13
14test('generates a simple file', async () => {
15 const toolbox = await createRuntime().run('simple')

Callers 1

Calls 2

addCoreExtensionsMethod · 0.95
addPluginMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…