Skip to content

Commit

Permalink
move makeRuntime down to module
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Aug 22, 2024
1 parent 31b8243 commit e284770
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/api/run_cucumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { resolvePaths } from '../paths'
import { SupportCodeLibrary } from '../support_code_library_builder/types'
import { version } from '../version'
import { IFilterablePickle } from '../filter'
import { makeRuntime } from '../runtime'
import { IRunOptions, IRunEnvironment, IRunResult } from './types'
import { makeRuntime } from './runtime'
import { initializeFormatters } from './formatters'
import { getSupportCodeLibrary } from './support'
import { mergeEnvironment } from './environment'
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './coordinator'
export * from './types'
export * from './make_runtime'
export { Runtime, RuntimeOptions } from './types'
11 changes: 6 additions & 5 deletions src/api/runtime.ts → src/runtime/make_runtime.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { EventEmitter } from 'node:events'
import { IdGenerator } from '@cucumber/messages'
import { SupportCodeLibrary } from '../support_code_library_builder/types'
import { IRunEnvironment, IRunOptionsRuntime } from '../api'
import { ILogger } from '../logger'
import { Runtime, Coordinator, RuntimeAdapter } from '../runtime'
import { ChildProcessAdapter } from '../runtime/parallel/adapter'
import { InProcessAdapter } from '../runtime/serial/adapter'
import { SourcedPickle } from '../assemble'
import { IRunEnvironment, IRunOptionsRuntime } from './types'
import { SupportCodeLibrary } from '../support_code_library_builder/types'
import { Runtime, RuntimeAdapter } from './types'
import { ChildProcessAdapter } from './parallel/adapter'
import { InProcessAdapter } from './serial/adapter'
import { Coordinator } from './coordinator'

export async function makeRuntime({
environment,
Expand Down
3 changes: 1 addition & 2 deletions test/formatter_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PassThrough } from 'node:stream'
import { promisify } from 'node:util'
import { IdGenerator } from '@cucumber/messages'
import * as messages from '@cucumber/messages'
import { RuntimeOptions } from '../src/runtime'
import { makeRuntime, RuntimeOptions } from '../src/runtime'
import { EventDataCollector } from '../src/formatter/helpers'
import FormatterBuilder from '../src/formatter/builder'
import { SupportCodeLibrary } from '../src/support_code_library_builder/types'
Expand All @@ -12,7 +12,6 @@ import { doesNotHaveValue } from '../src/value_checker'
import { emitSupportCodeMessages } from '../src/cli/helpers'
import { FormatOptions } from '../src/formatter'
import { SourcedPickle } from '../src/assemble'
import { makeRuntime } from '../src/api/runtime'
import { IRunEnvironment } from '../src/api'
import { generatePickles } from './gherkin_helpers'
import { buildOptions, buildSupportCodeLibrary } from './runtime_helpers'
Expand Down

0 comments on commit e284770

Please sign in to comment.