repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/electron/src/install.ts
packages/electron/src/install.ts
import os from 'os' import path from 'path' import systeminformation from 'systeminformation' import execa from 'execa' import { getPathToDist, getPathToExec, getPathToVersion, getPathToResources, } from './paths' import Debug from 'debug' import fs from 'fs/promises' import { createReadStream } from 'fs' impor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/electron/src/paths.ts
packages/electron/src/paths.ts
import os from 'os' import path from 'path' import { existsSync } from 'fs' const distPath = 'dist/Cypress' export function pkgRoot (): string { let currentDir = path.dirname(__dirname) // arbitrary limit to prevent infinite loop const limit = 200 let i = 0 do { if (i > limit) { throw new Error(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/electron/src/electron.ts
packages/electron/src/electron.ts
/* * ^- disabled because even though the eslint config for this pkg disables * 'no-console', certain IDEs will still show errors. */ import os from 'os' import path from 'path' import Debug from 'debug' import minimist from 'minimist' import execa from 'execa' import * as _install from './install' const debugElec...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/electron/src/index.ts
packages/electron/src/index.ts
// Re-export the main electron functionality export * from './electron' export { open } from './open' // Default export for CommonJS compatibility import * as electron from './electron' export default electron
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/electron/test/paths.spec.ts
packages/electron/test/paths.spec.ts
import { describe, it, beforeEach, afterEach, vi, expect } from 'vitest' import os from 'os' import { getPathToDist, getPathToExec, getPathToResources, pkgRoot } from '../src/paths' import { existsSync } from 'fs' import path from 'path' vi.mock('os', () => { return { default: { platform: vi.fn(), }, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/electron/test/open.spec.ts
packages/electron/test/open.spec.ts
import { describe, it, expect, beforeEach, afterEach, vi, Mock } from 'vitest' import { access, remove, ensureSymlink } from 'fs-extra' import { getPathToResources, getSymlinkType, getPathToExec } from '../src/paths' import { filter, DEBUG_PREFIX } from '@packages/stderr-filtering' import { Writable } from 'stream' imp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/web-config/index.d.ts
packages/web-config/index.d.ts
/// <reference path="../../cli/types/jquery/index.d.ts" /> /// <reference path="../../cli/types/mocha/index.d.ts" />
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/web-config/webpack.config.base.ts
packages/web-config/webpack.config.base.ts
import chalk from 'chalk' import { CleanWebpackPlugin } from 'clean-webpack-plugin' import webpack from 'webpack' // @ts-ignore import LiveReloadPlugin from 'webpack-livereload-plugin' // @ts-ignore import sassGlobImporter = require('node-sass-glob-importer') import HtmlWebpackPlugin = require('html-webpack-plugin') i...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/example/index.d.ts
packages/example/index.d.ts
export { default } from './lib/example'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/example/lib/example.d.ts
packages/example/lib/example.d.ts
declare const example: { getPathToE2E(): string } export default example
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/jest.config.ts
packages/data-context/jest.config.ts
import type { Config } from 'jest' // @see https://kulshekhar.github.io/ts-jest/docs for documentation on ts-jest import { createDefaultPreset } from 'ts-jest' const tsJestTransformCfg = createDefaultPreset({ tsconfig: 'tsconfig.test.json', }).transform export default async (): Promise<Config> => { return { t...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/scripts/nexus-build.ts
packages/data-context/scripts/nexus-build.ts
import { nexusCodegen } from '../graphql/utils/nexusTypegenUtils' nexusCodegen()
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schema.ts
packages/data-context/graphql/schema.ts
import path from 'path' import { makeSchema, connectionPlugin } from 'nexus' import * as schemaTypes from './schemaTypes' import { nodePlugin } from './plugins/nexusNodePlugin' import { remoteSchemaWrapped } from './stitching/remoteSchemaWrapped' import { mutationErrorPlugin, nexusDebugLogPlugin, nexusSlowGuardPlugin,...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/index.ts
packages/data-context/graphql/index.ts
export { graphqlSchema } from './schema' export { execute, parse, print } from 'graphql' export { remoteSchemaWrapped } from './stitching/remoteSchemaWrapped' export type { RemoteExecutionRoot } from './stitching/remoteSchemaWrapped'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/makeGraphQLServer.ts
packages/data-context/graphql/makeGraphQLServer.ts
import express, { Request } from 'express' import type { AddressInfo, Socket } from 'net' import { DataContext, getCtx, globalPubSub, GraphQLRequestInfo } from '../src' import pDefer from 'p-defer' import cors from 'cors' import { SocketIONamespace, SocketIOServer } from '@packages/socket' import type { Server } from '...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/index.ts
packages/data-context/graphql/schemaTypes/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './enumTypes/' export * from './inputTypes/' export * from './interfaceTypes/' export * from './objectTypes/' export * from './scalarTypes/' export * from './unions/'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/inputTypes/gql-WizardUpdateInput.ts
packages/data-context/graphql/schemaTypes/inputTypes/gql-WizardUpdateInput.ts
import { inputObjectType } from 'nexus' import { SupportedBundlerEnum } from '../enumTypes/gql-WizardEnums' export const WizardUpdateInput = inputObjectType({ name: 'WizardUpdateInput', definition (t) { t.string('framework') t.field('bundler', { type: SupportedBundlerEnum, }) }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/inputTypes/gql-TestsBySpecsInput.ts
packages/data-context/graphql/schemaTypes/inputTypes/gql-TestsBySpecsInput.ts
import { inputObjectType } from 'nexus' export const TestsBySpecInput = inputObjectType({ name: 'TestsBySpecInput', description: 'Represents the input for setting a mapping of test titles by the spec path', definition (t) { t.nonNull.string('specPath', { description: 'Path to the spec relative to the p...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/inputTypes/index.ts
packages/data-context/graphql/schemaTypes/inputTypes/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './gql-FileDetailsInput' export * from './gql-TestsBySpecsInput' export * from './gql-WizardUpdateInput'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/inputTypes/gql-FileDetailsInput.ts
packages/data-context/graphql/schemaTypes/inputTypes/gql-FileDetailsInput.ts
import { inputObjectType } from 'nexus' export const FileDetailsInput = inputObjectType({ name: 'FileDetailsInput', definition (t) { t.nonNull.string('filePath', { description: 'When we open a file we take a filePath, either relative to the project root, or absolute on disk', }) t.int('column') ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-GlobalProject.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-GlobalProject.ts
import { objectType } from 'nexus' export const GlobalProject = objectType({ name: 'GlobalProject', description: 'A project which exists on the filesystem but has not been opened', node: 'projectRoot', definition (t) { t.implements('ProjectLike') }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Version.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Version.ts
import { objectType } from 'nexus' export const Version = objectType({ name: 'Version', description: 'Version of Cypress and release date', definition (t) { t.nonNull.string('id', { description: 'unique id', }) t.nonNull.string('version', { description: 'Version number (follows semantic ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-FileParts.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-FileParts.ts
import { objectType } from 'nexus' import path from 'path' export interface FilePartsShape { line?: number column?: number absolute: string // For when we're merging / creating the file and might not have the file contents on-disk yet // used in the scaffolding contents?: string } export const FileParts =...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-AuthState.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-AuthState.ts
import { enumType, objectType } from 'nexus' import { authStateName } from '@packages/types' export const AuthStateNameEnum = enumType({ name: 'AuthStateNameEnum', members: authStateName, }) export const AuthState = objectType({ name: 'AuthState', description: 'Represents state of auth based on most recent me...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-VersionData.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-VersionData.ts
import { objectType } from 'nexus' import { Version } from './gql-Version' export const VersionData = objectType({ name: 'VersionData', description: 'Version of Cypress and release date', definition (t) { t.nonNull.field('latest', { type: Version, description: 'latest version of cypress', }) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-LocalSettings.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-LocalSettings.ts
import { objectType } from 'nexus' import { Editor } from './gql-Editor' export const LocalSettingsPreferences = objectType({ name: 'LocalSettingsPreferences', description: 'local setting preferences', definition (t) { t.boolean('autoScrollingEnabled') t.string('preferredEditorBinary') t.boolean('isS...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-TestingTypeInfo.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-TestingTypeInfo.ts
import { objectType } from 'nexus' import { TestingTypeEnum } from '../enumTypes/gql-WizardEnums' export const TestingTypeInfo = objectType({ name: 'TestingTypeInfo', node: 'type', definition (t) { t.nonNull.field('type', { type: TestingTypeEnum, }) t.nonNull.string('description') t.nonNul...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-RelevantRun.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-RelevantRun.ts
import { objectType } from 'nexus' export const RelevantRunInfo = objectType({ name: 'RelevantRunInfo', description: 'runNumber and commitSha for a given run', definition (t) { t.nonNull.id('runId', { description: 'The run id', }) t.nonNull.int('runNumber', { description: 'The runNumber ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-CurrentProject.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-CurrentProject.ts
import { PACKAGE_MANAGERS } from '@packages/types' import { enumType, nonNull, objectType, stringArg } from 'nexus' import path from 'path' import { BrowserStatusEnum, FileExtensionEnum } from '..' import { TestingTypeEnum } from '../enumTypes/gql-WizardEnums' import { Browser } from './gql-Browser' import { CodeGenGlo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-ReactComponentResponse.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-ReactComponentResponse.ts
import { objectType } from 'nexus' import { ReactComponentDescriptor } from './gql-ReactComponentDescriptor' export const ReactComponentResponse = objectType({ name: 'ReactComponentResponse', description: 'Response from getReactComponentsFromFile', definition (t) { t.nonNull.list.nonNull.field('components', ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Spec.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Spec.ts
import { objectType } from 'nexus' import { SpecTypeEnum } from '../enumTypes' import { GitInfo } from './gql-GitInfo' export const Spec = objectType({ name: 'Spec', description: 'Represents a spec on the file system', node: 'absolute', definition (t) { t.nonNull.field('specType', { type: SpecTypeEnu...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-ReactComponentDescriptor.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-ReactComponentDescriptor.ts
import { objectType } from 'nexus' export const ReactComponentDescriptor = objectType({ name: 'ReactComponentDescriptor', description: 'Properties describing a React component', definition (t) { t.nonNull.string('exportName', { description: 'The name of the component export e.g. "export const Foo"', ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardFrontendFramework.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardFrontendFramework.ts
import { objectType } from 'nexus' import { WIZARD_BUNDLERS } from '@packages/scaffold-config' import { SupportStatusEnum } from '../enumTypes' import { WizardBundler } from './gql-WizardBundler' export const WizardFrontendFramework = objectType({ name: 'WizardFrontendFramework', description: 'A frontend framework...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-CachedUser.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-CachedUser.ts
import dedent from 'dedent' import path from 'path' import { objectType } from 'nexus' export const CachedUser = objectType({ name: 'CachedUser', description: dedent` When we don't have an immediate response for the cloudViewer request, we'll use this as a fallback to render the avatar in the header bar /...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardNpmPackage.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardNpmPackage.ts
import { objectType } from 'nexus' export const WizardNpmPackage = objectType({ name: 'WizardNpmPackage', description: 'Details about an NPM Package listed during the wizard install', node: 'name', definition (t) { t.nonNull.string('name', { description: 'The package name that you would npm install',...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-RunSpecResponse.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-RunSpecResponse.ts
import { objectType } from 'nexus' export const RunSpecResponse = objectType({ name: 'RunSpecResponse', description: 'Result of a runSpec mutation', definition (t) { t.nonNull.string('testingType', { description: 'Testing Type that spec was launched in', }) t.nonNull.field('browser', { t...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-ScaffoldedFile.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-ScaffoldedFile.ts
import { objectType } from 'nexus' import { FileParts } from './gql-FileParts' import { WizardConfigFileStatusEnum } from '../enumTypes' export const ScaffoldedFile = objectType({ name: 'ScaffoldedFile', description: 'A file that we just added to the filesystem during project setup', definition (t) { t.nonNu...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-ProjectPreferences.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-ProjectPreferences.ts
import { objectType } from 'nexus' export const ProjectPreferences = objectType({ name: 'ProjectPreferences', description: 'Preferences specific to a project', definition (t) { t.string('testingType', { description: 'The preferred testing type to start in', }) }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Editor.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Editor.ts
import { objectType } from 'nexus' export const Editor = objectType({ name: 'Editor', description: 'Represents an editor on the local machine', definition (t) { t.nonNull.string('id') t.nonNull.string('name', { description: 'name of editor', }) t.string('binary', { description: 'Bin...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-GeneratedSpecError.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-GeneratedSpecError.ts
import { objectType } from 'nexus' export const GeneratedSpecError = objectType({ name: 'GeneratedSpecError', description: 'Error from generated spec', definition (t) { t.nonNull.string('fileName') t.nonNull.string('erroredCodegenCandidate') }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-CodeFrame.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-CodeFrame.ts
import { objectType } from 'nexus' import path from 'path' import { FileParts } from './gql-FileParts' export const CodeFrame = objectType({ name: 'CodeFrame', description: 'A code frame to display for a file, used when displaying code related to errors', definition (t) { t.int('line', { description: '...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardErroredFramework.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardErroredFramework.ts
import { objectType } from 'nexus' export const WizardErroredFramework = objectType({ name: 'WizardErroredFramework', description: 'Represents a Framework Definition that failed to load when detected', node: 'path', definition (t) { t.string('path', { description: `The location of the framework's pac...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Mutation.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Mutation.ts
import { arg, booleanArg, enumType, idArg, mutationType, nonNull, stringArg, list, intArg } from 'nexus' import { Wizard } from './gql-Wizard' import { CodeGenTypeEnum, TestingTypeEnum, PreferencesTypeEnum } from '../enumTypes' import { FileDetailsInput } from '../inputTypes/gql-FileDetailsInput' import { WizardUpdateI...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Studio.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Studio.ts
import { STUDIO_STATUSES } from '@packages/types' import { enumType } from 'nexus' export const StudioStatusTypeEnum = enumType({ name: 'StudioStatusType', members: STUDIO_STATUSES, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Cohorts.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Cohorts.ts
import { inputObjectType, objectType } from 'nexus' export const Cohort = objectType({ name: 'Cohort', description: 'used to distinguish one group of users from another', definition (t) { t.nonNull.string('name', { description: 'name used to identify the cohort topic (e.g. "LoginBanner" ) ' }) t.nonNull....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-CodeGenGlobs.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-CodeGenGlobs.ts
import { objectType } from 'nexus' export const CodeGenGlobs = objectType({ name: 'CodeGenGlobs', description: 'Glob patterns for detecting files for code gen.', node: 'component', definition (t) { t.nonNull.string('component') }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardBundler.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-WizardBundler.ts
import { objectType } from 'nexus' import { SupportedBundlerEnum } from '../enumTypes' export const WizardBundler = objectType({ name: 'WizardBundler', description: 'Wizard bundler', node: 'type', definition (t) { t.nonNull.boolean('isDetected', { description: 'Whether this is the detected bundler', ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-ErrorWrapper.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-ErrorWrapper.ts
import { stripAnsi } from '@packages/errors' import { objectType } from 'nexus' import { ErrorTypeEnum } from '../enumTypes/gql-ErrorTypeEnum' import { CodeFrame } from './gql-CodeFrame' export const ErrorWrapper = objectType({ name: 'ErrorWrapper', description: 'Base error', definition (t) { t.nonNull.id('...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/index.ts
packages/data-context/graphql/schemaTypes/objectTypes/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './gql-AuthState' export * from './gql-Browser' export * from './gql-CachedUser' export * from './gql-CodeFrame' export * from './gql-CodeGenGlobs' export * from './gql-Cohorts' export * from './gql-Curr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Wizard.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Wizard.ts
import path from 'path' import { WizardBundler } from './gql-WizardBundler' import { WizardFrontendFramework } from './gql-WizardFrontendFramework' import { WizardNpmPackage } from './gql-WizardNpmPackage' import { objectType } from 'nexus' import { WIZARD_BUNDLERS } from '@packages/scaffold-config' import { WizardErro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-GenerateSpecResponse.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-GenerateSpecResponse.ts
import { objectType } from 'nexus' import { GeneratedSpecResult } from '../unions' import { CurrentProject } from './gql-CurrentProject' import type { FilePartsShape } from './gql-FileParts' export type ScaffoldedFileSource = { status: 'changes' | 'valid' | 'skipped' | 'error' description: string file: FileParts...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Browser.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Browser.ts
import { objectType } from 'nexus' import { BrowserFamilyEnum } from '../enumTypes/gql-BrowserFamilyEnum' export const Browser = objectType({ name: 'Browser', description: 'Container representing a browser', node: (obj, args, ctx) => ctx.browser.idForBrowser(obj), definition (t) { t.nonNull.string('channel...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Query.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Query.ts
import { idArg, stringArg, nonNull, objectType } from 'nexus' import path from 'path' import { ProjectLike } from '../interfaceTypes/gql-ProjectLike' import { ScaffoldedFile } from './gql-ScaffoldedFile' import { CurrentProject } from './gql-CurrentProject' import { DevState } from './gql-DevState' import { AuthState }...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-DevState.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-DevState.ts
import _ from 'lodash' import { objectType } from 'nexus' import path from 'path' const toExpand = new Set(['ProjectLifecycleManager']) export const DevState = objectType({ name: 'DevState', description: 'State associated/helpful for local development of Cypress', definition (t) { t.json('state', { des...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-Subscription.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-Subscription.ts
import type { PushFragmentData } from '../../../src/actions' import { enumType, idArg, list, nonNull, objectType, subscriptionType } from 'nexus' import { CurrentProject, DevState, Query, StudioStatusTypeEnum, Wizard } from '.' import { Spec } from './gql-Spec' import { RelevantRun } from './gql-RelevantRun' export co...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-RunSpecError.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-RunSpecError.ts
import { objectType } from 'nexus' import { RunSpecErrorCodeEnum } from '../enumTypes' export const RunSpecError = objectType({ name: 'RunSpecError', description: 'Error encountered during a runSpec mutation', definition (t) { t.nonNull.field('code', { type: RunSpecErrorCodeEnum, }) t.string('...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/objectTypes/gql-GitInfo.ts
packages/data-context/graphql/schemaTypes/objectTypes/gql-GitInfo.ts
import { objectType, enumType } from 'nexus' import { gitStatusType } from '@packages/types' export const GitInfoStatusTypeEnum = enumType({ name: 'GitInfoStatusType', members: gitStatusType, }) export const GitInfo = objectType({ name: 'GitInfo', description: 'Git information about a spec file', definition...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/interfaceTypes/gql-RemoteFetchable.ts
packages/data-context/graphql/schemaTypes/interfaceTypes/gql-RemoteFetchable.ts
import { enumType, interfaceType } from 'nexus' import type { RemoteFetchableStatus, NexusGenAbstractTypeMembers } from '../../../src/gen/nxs.gen' export interface RemoteFetchableShape { __typename: NexusGenAbstractTypeMembers['RemoteFetchable'] id: string fetchingStatus: RemoteFetchableStatus operationHash: s...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/interfaceTypes/gql-Node.ts
packages/data-context/graphql/schemaTypes/interfaceTypes/gql-Node.ts
import { interfaceType } from 'nexus' import assert from 'assert' export const Node = interfaceType({ name: 'Node', description: 'Implements the Relay Node spec', definition (t) { t.nonNull.id('id', { description: 'Globally unique identifier representing a concrete GraphQL ObjectType', resolve: (...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/interfaceTypes/index.ts
packages/data-context/graphql/schemaTypes/interfaceTypes/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './gql-Node' export * from './gql-ProjectLike' export * from './gql-RemoteFetchable'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/interfaceTypes/gql-ProjectLike.ts
packages/data-context/graphql/schemaTypes/interfaceTypes/gql-ProjectLike.ts
import dedent from 'dedent' import path from 'path' import { interfaceType } from 'nexus' export const ProjectLike = interfaceType({ name: 'ProjectLike', description: 'Common base fields inherited by GlobalProject / CurrentProject', definition (t) { t.nonNull.string('projectRoot', { description: 'Absol...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/scalarTypes/gql-customScalars.ts
packages/data-context/graphql/schemaTypes/scalarTypes/gql-customScalars.ts
import { DateTimeResolver, JSONResolver } from 'graphql-scalars' import { asNexusMethod } from 'nexus' // Apollo VSCode is having trouble with this directive JSONResolver.specifiedByUrl = null export const customScalars = [ asNexusMethod(JSONResolver, 'json'), asNexusMethod(DateTimeResolver, 'dateTime'), ]
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/scalarTypes/index.ts
packages/data-context/graphql/schemaTypes/scalarTypes/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './gql-customScalars'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/unions/gql-GeneratedSpecResult.ts
packages/data-context/graphql/schemaTypes/unions/gql-GeneratedSpecResult.ts
import { unionType } from 'nexus' export const GeneratedSpecResult = unionType({ name: 'GeneratedSpecResult', definition (t) { t.members( 'ScaffoldedFile', 'GeneratedSpecError', ) }, resolveType: (obj) => { // @ts-expect-error if (obj.fileName) { return 'GeneratedSpecError' ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/unions/index.ts
packages/data-context/graphql/schemaTypes/unions/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './gql-GeneratedSpecResult' export * from './gql-RunSpecResult'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/unions/gql-RunSpecResult.ts
packages/data-context/graphql/schemaTypes/unions/gql-RunSpecResult.ts
import { unionType } from 'nexus' export const RunSpecResult = unionType({ name: 'RunSpecResult', definition (t) { t.members( 'RunSpecResponse', 'RunSpecError', ) }, resolveType: (obj) => { return 'code' in obj ? 'RunSpecError' : 'RunSpecResponse' }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-FileExtensionEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-FileExtensionEnum.ts
import { enumType } from 'nexus' export const FileExtensionEnum = enumType({ name: 'FileExtensionEnum', members: ['js', 'ts', 'jsx', 'tsx'], })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-PreferencesTypeEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-PreferencesTypeEnum.ts
import { enumType } from 'nexus' export const PreferencesTypeEnum = enumType({ name: 'PreferencesTypeEnum', members: ['global', 'project'], })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-BrowserFamilyEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-BrowserFamilyEnum.ts
import { BROWSER_FAMILY } from '@packages/types' import { enumType } from 'nexus' export const BrowserFamilyEnum = enumType({ name: 'BrowserFamily', members: BROWSER_FAMILY, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-SpecEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-SpecEnum.ts
import { enumType } from 'nexus' export const SPEC_TYPE = ['component', 'integration'] as const export type SpecType = typeof SPEC_TYPE[number] export const SpecTypeEnum = enumType({ name: 'SpecType', members: SPEC_TYPE, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-WizardEnums.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-WizardEnums.ts
import { CODE_LANGUAGES } from '@packages/types' import { WIZARD_BUNDLERS, SUPPORT_STATUSES } from '@packages/scaffold-config' import { enumType } from 'nexus' export const SupportedBundlerEnum = enumType({ name: 'SupportedBundlers', description: 'The bundlers that we can use with Cypress', members: WIZARD_BUNDL...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-ErrorTypeEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-ErrorTypeEnum.ts
import { enumType } from 'nexus' import { AllCypressErrors } from '@packages/errors' export const ErrorTypeEnum = enumType({ name: 'ErrorTypeEnum', members: Object.keys(AllCypressErrors), })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-BrowserStatus.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-BrowserStatus.ts
import { BROWSER_STATUS } from '@packages/types' import { enumType } from 'nexus' export const BrowserStatusEnum = enumType({ name: 'BrowserStatus', members: BROWSER_STATUS, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-ProjectEnums.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-ProjectEnums.ts
import { PLUGINS_STATE } from '@packages/types' import { enumType } from 'nexus' export const PluginsStateEnum = enumType({ name: 'PluginsState', members: PLUGINS_STATE, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/index.ts
packages/data-context/graphql/schemaTypes/enumTypes/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './gql-BrowserFamilyEnum' export * from './gql-BrowserStatus' export * from './gql-CodeGenTypeEnum' export * from './gql-ErrorTypeEnum' export * from './gql-FileExtensionEnum' export * from './gql-Prefer...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-RunSpecErrorCodeEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-RunSpecErrorCodeEnum.ts
import { enumType } from 'nexus' export const RunSpecErrorCode = ['NO_PROJECT', 'NO_SPEC_PATH', 'NO_SPEC_PATTERN_MATCH', 'TESTING_TYPE_NOT_CONFIGURED', 'SPEC_NOT_FOUND', 'GENERAL_ERROR'] as const export const RunSpecErrorCodeEnum = enumType({ name: 'RunSpecErrorCode', members: RunSpecErrorCode, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/schemaTypes/enumTypes/gql-CodeGenTypeEnum.ts
packages/data-context/graphql/schemaTypes/enumTypes/gql-CodeGenTypeEnum.ts
import { enumType } from 'nexus' export const CodeGenTypeEnum = enumType({ name: 'CodeGenType', members: ['component', 'componentEmpty', 'e2e', 'e2eExamples'], })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/stitching/remoteSchemaWrapped.ts
packages/data-context/graphql/stitching/remoteSchemaWrapped.ts
import { delegateToSchema } from '@graphql-tools/delegate' import { wrapSchema } from '@graphql-tools/wrap' import type { DataContext } from '../../src' import type { RequestPolicy } from '@urql/core' import assert from 'assert' import debugLib from 'debug' import { BREAK, OperationDefinitionNode, visit } from 'graphql...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/stitching/remoteSchema.ts
packages/data-context/graphql/stitching/remoteSchema.ts
/** * DIY "Schema Stitching" * * Interleaves the remote GraphQL schema with the locally defined schema * to create a single unified schema for fetching from the client. */ import fs from 'fs' import path from 'path' import { buildSchema } from 'graphql' const LOCAL_SCHEMA_EXTENSIONS = ` scalar JSON extend type M...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/utils/nexusTypegenUtils.ts
packages/data-context/graphql/utils/nexusTypegenUtils.ts
/* eslint-disable no-console */ /* eslint-disable no-restricted-syntax */ import { spawn, execSync } from 'child_process' import chalk from 'chalk' import pDefer from 'p-defer' import chokidar from 'chokidar' import _ from 'lodash' import path from 'path' import fs from 'fs-extra' const dataContextPackageRoot = path.j...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/utils/index.ts
packages/data-context/graphql/utils/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './graphqlTypeUtils' export * from './nexusTypegenUtils'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/utils/graphqlTypeUtils.ts
packages/data-context/graphql/utils/graphqlTypeUtils.ts
import type { QueryResolvers as CloudQueryResolvers, Resolver } from '../../src/gen/cloud-source-types.gen' import type { NexusGenInterfaceNames, NexusGenObjectNames, NexusGenUnionNames } from '../../src/gen/nxs.gen' export type CloudRemoteTargets = { [K in NexusGenObjectNames | NexusGenUnionNames | NexusGenInterfac...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/nexusSlowGuardPlugin.ts
packages/data-context/graphql/plugins/nexusSlowGuardPlugin.ts
import { plugin } from 'nexus' import { isPromiseLike, pathToArray } from 'nexus/dist/utils' import chalk from 'chalk' import { logError } from '@packages/stderr-filtering' const HANGING_RESOLVER_THRESHOLD = 100 export const nexusSlowGuardPlugin = plugin({ name: 'NexusSlowGuard', description: 'If there is a very ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/nexusDeferIfNotLoadedPlugin.ts
packages/data-context/graphql/plugins/nexusDeferIfNotLoadedPlugin.ts
import { plugin } from 'nexus' import debugLib from 'debug' import { defaultFieldResolver, getNamedType, isNonNullType } from 'graphql' import type { DataContext } from '../../src' import { remoteSchema } from '../stitching/remoteSchema' const NO_RESULT = {} // 2ms should be enough time to resolve from the local cache...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/nexusDebugFieldPlugin.ts
packages/data-context/graphql/plugins/nexusDebugFieldPlugin.ts
import { plugin } from 'nexus' import debugLib from 'debug' import { pathToArray } from 'graphql/jsutils/Path' const debugField = debugLib(`cypress-verbose:graphql:fields`) const SLOW_FIELD_THRESHOLD = 100 // Log any field taking longer than 100ms const delta = (d: Date) => { return new Date().valueOf() - d.valueO...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/index.ts
packages/data-context/graphql/plugins/index.ts
/* eslint-disable padding-line-between-statements */ // created by autobarrel, do not modify directly export * from './nexusDebugFieldPlugin' export * from './nexusDeferIfNotLoadedPlugin' export * from './nexusMutationErrorPlugin' export * from './nexusNodePlugin' export * from './nexusRemoteFieldPlugin' export * from...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/nexusMutationErrorPlugin.ts
packages/data-context/graphql/plugins/nexusMutationErrorPlugin.ts
import { plugin } from 'nexus' import { getError } from '@packages/errors' import type { DataContext } from '../../src' import { getNamedType, isObjectType } from 'graphql' import _ from 'lodash' export const mutationErrorPlugin = plugin({ name: 'MutationErrorPlugin', description: 'Wraps any mutation fields and ha...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/nexusRemoteFieldPlugin.ts
packages/data-context/graphql/plugins/nexusRemoteFieldPlugin.ts
import dedent from 'dedent' import type { DocumentNode, GraphQLResolveInfo } from 'graphql' import { dynamicOutputMethod, plugin, core, objectType, mutationField, idArg, list, nonNull, stringArg } from 'nexus' import { createBatchResolver } from 'graphql-resolve-batch' import type { NexusGenAbstractTypeMembers } from ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/graphql/plugins/nexusNodePlugin.ts
packages/data-context/graphql/plugins/nexusNodePlugin.ts
import { FieldResolver, plugin } from 'nexus' // We know this is a valid node typename // eslint-disable-next-line @typescript-eslint/no-explicit-any type $ValidatedByGraphQL = any; export const nodePlugin = plugin({ name: 'NodePlugin', objectTypeDefTypes: ` node?: (TypeName extends keyof NexusGenRootTypes ? ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/DataActions.ts
packages/data-context/src/DataActions.ts
import type { DataContext } from '.' import { LocalSettingsActions, AppActions, ElectronActions, FileActions, ProjectActions, WizardActions, BrowserActions, DevActions, AuthActions, ServersActions, CohortsActions, CodegenActions, CloudProjectActions, CurrentRecordingActions, } from './action...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/globalPubSub.ts
packages/data-context/src/globalPubSub.ts
/* eslint-disable no-dupe-class-members */ import EventEmitter from 'events' import type { DataContext } from './DataContext' type MenuItem = 'log:out' /** * Because most of the original server modules contain local state * that will require incremental refactoring, we create a global "typed" * EventEmitter which ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/index.ts
packages/data-context/src/index.ts
import type { DataContext } from './DataContext' export { DocumentNodeBuilder } from './util/DocumentNodeBuilder' export { DataContext, } from './DataContext' export type { DataContextConfig, GraphQLRequestInfo, } from './DataContext' export type { GlobalPubSub, } from './globalPubSub' export * from './uti...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/DataContext.ts
packages/data-context/src/DataContext.ts
import type { AllModeOptions } from '@packages/types' import fsExtra from 'fs-extra' import path from 'path' import chalk from 'chalk' import assert from 'assert' import str from 'underscore.string' import _ from 'lodash' import 'server-destroy' import { AppApiShape, CohortsApiShape, DataEmitterActions, LocalSettings...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/DocumentNodeBuilder.ts
packages/data-context/src/util/DocumentNodeBuilder.ts
import { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLResolveInfo, VariableDefinitionNode, visit } from 'graphql' export interface RemoteQueryConfig { fieldNodes: FieldNode[] variableDefinitions: VariableDefinitionNode[] } export type DocumentNodeBuilderParams = Pick<GraphQLResolveInfo, 'fieldNodes' | ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/files.ts
packages/data-context/src/util/files.ts
import { defaultSpecPattern } from '@packages/config' import type { TestingType, FoundSpec } from '@packages/types' import Debug from 'debug' import _ from 'lodash' import path from 'path' import { getPathFromSpecPattern, getLongestCommonPrefixFromPaths } from '../sources/ProjectDataSource' export const isDefaultSuppo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/urqlCacheKeys.ts
packages/data-context/src/util/urqlCacheKeys.ts
import type { CacheExchangeOpts } from '@urql/exchange-graphcache' import { relayPagination } from '@urql/exchange-graphcache/extras' import type { GraphCacheConfig } from '../gen/graphcache-config.gen' /** * Create a new type that overrides the keys, instead of using GraphCacheConfig * directly; if we try to use i...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/autoBindDebug.ts
packages/data-context/src/util/autoBindDebug.ts
import debugLib from 'debug' const debugLibCache: Record<string, debugLib.Debugger> = {} /** * This function enables trace logging on all function calls and setters for a given class. * If you add: * * return autoBindDebug(this) * * to the constructor of the class for which you want to enable logging, you can t...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/weightedChoice.ts
packages/data-context/src/util/weightedChoice.ts
import _ from 'lodash' export type WeightedAlgorithm = { pick: (values: string[]) => string } /** * Randomly choose an index from an array based on weights * * Based on algorithm found here: https://dev.to/trekhleb/weighted-random-algorithm-in-javascript-1pdc * * @param weights array of numbered weights that c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/pluginHandlers.ts
packages/data-context/src/util/pluginHandlers.ts
import type { PluginIpcHandler } from '../data' let pluginHandlers: PluginIpcHandler[] = [] export const getServerPluginHandlers = () => { return pluginHandlers } export const registerServerPluginHandler = (handler: PluginIpcHandler) => { pluginHandlers.push(handler) } export const resetPluginHandlers = () => {...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/data-context/src/util/file.ts
packages/data-context/src/util/file.ts
import path from 'path' export function toPosix (file: string, sep: string = path.sep) { return file.split(sep).join(path.posix.sep) }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false