Skip to content

Commit

Permalink
remove projectApi.findSpecs
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Dec 1, 2021
1 parent e020e7d commit df3d841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions packages/data-context/src/actions/ProjectActions.ts
@@ -1,5 +1,5 @@
import type { CodeGenType, MutationAddProjectArgs, MutationSetProjectPreferencesArgs, TestingTypeEnum } from '@packages/graphql/src/gen/nxs.gen'
import type { FindSpecs, FoundBrowser, FoundSpec, FullConfig, LaunchArgs, LaunchOpts, OpenProjectLaunchOptions, Preferences, SettingsOptions } from '@packages/types'
import type { FoundBrowser, FoundSpec, FullConfig, LaunchArgs, LaunchOpts, OpenProjectLaunchOptions, Preferences, SettingsOptions } from '@packages/types'
import execa from 'execa'
import path from 'path'
import type { ActiveProjectShape, ProjectShape } from '../data/coreDataShape'
Expand All @@ -10,7 +10,6 @@ import templates from '../codegen/templates'

export interface ProjectApiShape {
getConfig(projectRoot: string, options?: SettingsOptions): Promise<FullConfig>
findSpecs(payload: FindSpecs): Promise<FoundSpec[]>
/**
* "Initializes" the given mode, since plugins can define the browsers available
* TODO(tim): figure out what this is actually doing, it seems it's necessary in
Expand Down
6 changes: 1 addition & 5 deletions packages/server/lib/makeDataContext.ts
Expand Up @@ -2,8 +2,7 @@ import { DataContext } from '@packages/data-context'
import os from 'os'
import electron, { App } from 'electron'

import specsUtil from './util/specs'
import type { AllowedState, FindSpecs, FoundBrowser, LaunchArgs, LaunchOpts, OpenProjectLaunchOptions, PlatformName, Preferences, SettingsOptions } from '@packages/types'
import type { AllowedState, FoundBrowser, LaunchArgs, LaunchOpts, OpenProjectLaunchOptions, PlatformName, Preferences, SettingsOptions } from '@packages/types'
import browserUtils from './browsers/utils'
import auth from './gui/auth'
import user from './user'
Expand Down Expand Up @@ -93,9 +92,6 @@ export function makeDataContext (options: MakeDataContextOptions): DataContext {
getProjectRootsFromCache () {
return cache.getProjectRoots()
},
findSpecs (payload: FindSpecs) {
return specsUtil.findSpecs(payload)
},
clearLatestProjectsCache () {
return cache.removeLatestProjects()
},
Expand Down

0 comments on commit df3d841

Please sign in to comment.