Skip to content

Commit d807cd5

Browse files
author
Jason Kuhrt
authored
refactor: group testing logic under own dir (#905)
1 parent 7935450 commit d807cd5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/lib/plugin/types/lens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Logger from '@nexus/logger'
22
import * as NexusSchema from '@nexus/schema'
33
import * as Prompts from 'prompts'
4-
import * as Testing from '../../../runtime/testing'
4+
import * as Testing from '../../../testing/testing'
55
import * as Layout from '../../layout'
66
import * as PackageManager from '../../package-manager'
77
import * as Process from '../../process'

src/testing.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/testing/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { createTestContext, TestContext } from './testing'

src/runtime/testing.ts renamed to src/testing/testing.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { isLeft } from 'fp-ts/lib/Either'
22
import getPort from 'get-port'
33
import * as Lo from 'lodash'
4-
import app from '.'
54
import { GraphQLClient } from '../lib/graphql-client'
65
import * as Layout from '../lib/layout'
6+
import { rootLogger } from '../lib/nexus-logger'
77
import * as PluginRuntime from '../lib/plugin'
88
import * as PluginWorktime from '../lib/plugin/worktime'
9-
import { PrivateApp } from './app'
10-
import { createDevAppRunner } from './start'
11-
import { rootLogger } from '../lib/nexus-logger'
9+
import app from '../runtime'
10+
import { PrivateApp } from '../runtime/app'
11+
import { createDevAppRunner } from '../runtime/start'
1212

1313
const pluginLogger = rootLogger.child('plugin')
1414

0 commit comments

Comments
 (0)