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/frontend-shared/src/utils/isAllowedFeature.cy.ts
packages/frontend-shared/src/utils/isAllowedFeature.cy.ts
import { isAllowedFeature } from './isAllowedFeature' import { UserProjectStatusStore, useUserProjectStatusStore, CLOUD_STATUSES, ProjectStatus } from '../store' import type { CloudStatus } from '../store' import { BannerIds } from '@packages/types' import interval from 'human-interval' const bannerIds = { isLoggedO...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/icons.ts
packages/frontend-shared/src/utils/icons.ts
import LogoWebpack from '../assets/logos/webpack.svg' import LogoVite from '../assets/logos/vite.svg' import LogoNext from '../assets/logos/nextjs.svg' import LogoVue from '../assets/logos/vue.svg' import LogoReact from '../assets/logos/react.svg' import LogoAngular from '../assets/logos/angular.svg' import LogoSvelte ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/time.ts
packages/frontend-shared/src/utils/time.ts
import enTimeAgo from 'javascript-time-ago/locale/en' import TimeAgo from 'javascript-time-ago' TimeAgo.addDefaultLocale(enTimeAgo) const timeAgo = new TimeAgo('en-US') export function getTimeAgo (iso8601: string) { return timeAgo.format(new Date(iso8601)) } export function getDurationString (totalSeconds: number)...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/getUrlWithParams.cy.ts
packages/frontend-shared/src/utils/getUrlWithParams.cy.ts
import { getUrlWithParams } from './getUrlWithParams' describe('getUrlWithParams', () => { describe('getUrlWithParams', () => { it('should handle empty input url', () => { const result = getUrlWithParams({ url: '', params: {}, }) expect(result).to.equal('') }) it('shou...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/base64.ts
packages/frontend-shared/src/utils/base64.ts
/** * Correctly decodes Unicode string in encoded in base64 * Copied from driver/src/cypress/utils.ts * * @see https://github.com/cypress-io/cypress/issues/5435 * @see https://github.com/cypress-io/cypress/issues/7507 * @see https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-does...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/isWindows.ts
packages/frontend-shared/src/utils/isWindows.ts
import { decodeBase64Unicode } from './base64' export const isWindows = (window.Cypress?.platform || JSON.parse(decodeBase64Unicode(window.__CYPRESS_CONFIG__.base64Config)).platform) === 'win32'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/isAllowedFeature.ts
packages/frontend-shared/src/utils/isAllowedFeature.ts
import interval from 'human-interval' import { BannerIds } from '@packages/types' import type { UserProjectStatusStore, CloudStatus, ProjectStatus } from '../store' type Feature = 'specsListBanner' | 'docsCiPrompt' type RulesSet = { base: boolean[] } & Partial<Record<CloudStatus | ProjectStatus, boolean[]>> type Rules...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/getUrlWithParams.ts
packages/frontend-shared/src/utils/getUrlWithParams.ts
import { getUtmSource } from './getUtmSource' export type LinkWithParams = { url: string params: { [key: string]: string } } export const getUrlWithParams = (link: LinkWithParams) => { let result = link.url const paramNames = Object.keys(link.params) if (paramNames.length > 0) { const hasUtmParams = pa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/getUtmSource.ts
packages/frontend-shared/src/utils/getUtmSource.ts
export type LoginUtmSource = 'Binary: App' | 'Binary: Launchpad' // __CYPRESS_MODE__ is only set on the window in th browser app - // checking this allows us to know if links are clicked in the browser app or the launchpad export function getUtmSource (): LoginUtmSource { return window.__CYPRESS_MODE__ ? 'Binary: Ap...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/utils/decodeBase64.ts
packages/frontend-shared/src/utils/decodeBase64.ts
/** * Correctly decodes Unicode string in encoded in base64 * Copied from driver/src/cypress/utils.ts * * @see https://github.com/cypress-io/cypress/issues/5435 * @see https://github.com/cypress-io/cypress/issues/7507 * @see https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-does...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/assets/browserLogos.ts
packages/frontend-shared/src/assets/browserLogos.ts
import { IconBrowserElectronLight, IconBrowserChrome, IconBrowserChromeBeta, IconBrowserChromeCanary, IconBrowserChromeForTesting, IconBrowserMozillaFirefox, IconBrowserEdge, IconBrowserChromium, IconBrowserFirefoxNightly, IconBrowserFirefoxDev, IconBrowserEdgeCanary, IconBrowserEdgeBeta, Icon...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/warning/Warning.cy.tsx
packages/frontend-shared/src/warning/Warning.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import Warning from './Warning.vue' import { faker } from '@faker-js/faker' import { ref } from 'vue' faker.seed(1) const title = faker.hacker.noun() const message = ` # Hello! > This is a **m...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/locales/schema.ts
packages/frontend-shared/src/locales/schema.ts
/** * define the resource schema */ import type enUS from './en-US.json' // define the locale message schema as master export type MessageSchema = typeof enUS
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/src/locales/i18n.ts
packages/frontend-shared/src/locales/i18n.ts
import { useI18n as _useI18n, createI18n as _createI18n, } from 'vue-i18n' import type enUS from './en-US.json' // Imports a special compiled messages object import compiledMessages from '@intlify/unplugin-vue-i18n/messages' // The raw strings for the default language (en) used for testing import rawJsonMessages ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/e2e.ts
packages/frontend-shared/cypress/support/e2e.ts
import '@testing-library/cypress/add-commands' import { knownBrowsers } from '@packages/launcher/lib/known-browsers' import { configure } from '@testing-library/cypress' import { fixtureDirs, ProjectFixtureDir } from '@tooling/system-tests' import type { DataContext } from '@packages/data-context' import type { Authent...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/tab-until.ts
packages/frontend-shared/cypress/support/tab-until.ts
import { logInternal } from './utils' declare global { namespace Cypress { interface Chainable { /** * Tabs until the result of fn is true */ tabUntil(fn: ($el: JQuery) => boolean, limit?: number): Chainable<any> } } } export function tabUntil (fn: (el: JQuery<HTMLElement>) => bo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/utils.ts
packages/frontend-shared/cypress/support/utils.ts
export function logInternal<T> (name: string | Partial<Cypress.LogConfig>, cb: (log: Cypress.Log | undefined) => Cypress.Chainable<T>, opts: Partial<Cypress.Loggable> = {}): Cypress.Chainable<T> { const _log = typeof name === 'string' ? Cypress.log({ name, message: '' }) : Cypress.log(name) return cb(_log)...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/browserIconCommands.ts
packages/frontend-shared/cypress/support/browserIconCommands.ts
declare global { namespace Cypress { interface Chainable { verifyBrowserIconSvg( expectedSvgData: string ): Chainable<JQuery<HTMLElement>> } } } function verifyBrowserIconSvg ( subject: JQuery<HTMLElement>, expectedSvgData: string, ) { cy.then(() => { let actualSvgData = '' ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/common.ts
packages/frontend-shared/cypress/support/common.ts
import '../../src/styles/shared.scss' import type { ComponentPublicInstance } from 'vue' import { configure } from '@testing-library/cypress' // Add cy.mount, cy.mountFragment, cy.mountFragmentList export * from './mock-graphql/mountFragment' configure({ testIdAttribute: 'data-cy' }) export function addVueCommand ()...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/onlineNetwork.ts
packages/frontend-shared/cypress/support/onlineNetwork.ts
export function addNetworkCommands () { Cypress.Commands.add('goOnline', () => { cy.log('**go online**').window().then(($window) => { $window.dispatchEvent(new $window.Event('online')) }) }) Cypress.Commands.add('goOffline', () => { cy.log('**go offline**').window().then(($window) => { $w...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/customPercyCommand.ts
packages/frontend-shared/cypress/support/customPercyCommand.ts
/// <reference types="cypress" /> import '@percy/cypress' import type { SnapshotOptions } from '@percy/core' export interface CustomSnapshotOptions extends SnapshotOptions{ /** * width of the snapshot taken from the left edge of the viewport * @default - The test's viewportWidth */ width?: number /** ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/component.ts
packages/frontend-shared/cypress/support/component.ts
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these tsconfig compiler paths import { defaultMessages } from '@cy/i18n' import { registerMountFn, addVueCommand } from './common' import '../../src/styles/shared.scss' import 'tailwindcss/tailwind.css' import 'cypress-real-events/support' imp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/fakeCloudSpecRun.ts
packages/frontend-shared/cypress/support/mock-graphql/fakeCloudSpecRun.ts
import type { CloudSpecRun } from '@packages/data-context/src/gen/cloud-source-types.gen' import type { CloudRunGroupStatusEnum } from '@packages/app/src/generated/graphql' export const randomRunStatus = (): CloudRunGroupStatusEnum => { const r = Math.floor(Math.random() * 5) switch (r) { case 0: return 'CANC...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts
import type { ClientTestContext } from './clientTestContext' import { makeClientTestContext } from './clientTestContext' import '@testing-library/cypress/add-commands' import type { MountingOptions } from '@vue/test-utils' // tslint:disable-next-line: no-implicit-dependencies - requires cypress import type { CyMountOpt...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-ErrorWrapper.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-ErrorWrapper.ts
import dedent from 'dedent' import type { ErrorWrapper } from '../generated/test-graphql-types.gen' import type { MaybeResolver } from './clientTestUtils' export const StubErrorWrapper = { __typename: 'ErrorWrapper', id: 'Error1', title: 'Cypress configuration error', errorMessage: dedent` Your \`supportFi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/fake-uuid.d.ts
packages/frontend-shared/cypress/support/mock-graphql/fake-uuid.d.ts
declare module 'fake-uuid' { type A_to_F = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' const fakeUuid: (input?: A_to_F | number, fill?: number | A_to_F) => string export default fakeUuid }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/clientTestContext.ts
packages/frontend-shared/cypress/support/mock-graphql/clientTestContext.ts
import type { AuthenticatedUserShape, AuthStateShape } from '@packages/data-context/src/data' import type { CurrentProject, Browser, WizardBundler, WizardFrontendFramework, GlobalProject, VersionData, LocalSettings, } from '../generated/test-graphql-types.gen' import { resetTestNodeIdx } from './clientTes...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/clientTestUtils.ts
packages/frontend-shared/cypress/support/mock-graphql/clientTestUtils.ts
import type { NexusGenArgTypes } from '@packages/data-context/src/gen/nxs.gen' import type { TypedDocumentNode } from '@urql/core' import type { GraphQLResolveInfo, OperationTypeNode } from 'graphql' import type { SetOptional } from 'type-fest' import type { CodegenTypeMap, } from '../generated/test-graphql-types.ge...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-Project.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-Project.ts
import _ from 'lodash' import config from '../../fixtures/config.json' import data from '../../fixtures/TestCurrentProject.json' import type { CurrentProject, GlobalProject, Spec, } from '../generated/test-graphql-types.gen' import { testNodeId } from './clientTestUtils' import { CloudProjectStubs } from '@packa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-Registry.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-Registry.ts
import { stubWizard } from './stubgql-Wizard' import type { MaybeResolver } from './clientTestUtils' import { stubMutation } from './stubgql-Mutation' import { stubQuery } from './stubgql-Query' import { stubGlobalProject, stubProject } from './stubgql-Project' import { CloudOrganizationStubs, CloudProjectStubs, CloudR...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-Query.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-Query.ts
import type { Query } from '../generated/test-graphql-types.gen' import type { MaybeResolver } from './clientTestUtils' // import dedent from 'dedent' export const stubQuery: MaybeResolver<Query> = { __typename: 'Query', dev () { return {} }, localSettings (source, args, ctx) { return ctx.localSettings...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/clientTestSchema.ts
packages/frontend-shared/cypress/support/mock-graphql/clientTestSchema.ts
import { buildClientSchema } from 'graphql' import schemaForTests from '../../../src/generated/schema-for-tests.gen.json' // @ts-expect-error - for some reason the JSON type isn't strict enough export const clientTestSchema = buildClientSchema(schemaForTests, { assumeValid: true })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-Mutation.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-Mutation.ts
import type { Mutation, RemoteFetchable } from '../generated/test-graphql-types.gen' import type { MaybeResolver } from './clientTestUtils' import { createTestCurrentProject, createTestGlobalProject } from './stubgql-Project' // `path` is externalized, so we use a simple implementation of `path.basename` here functio...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-Wizard.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-Wizard.ts
import type { Wizard, WizardBundler } from '../generated/test-graphql-types.gen' import type { MaybeResolver } from './clientTestUtils' import { testNodeId } from './clientTestUtils' import { WIZARD_DEPENDENCY_REACT, WIZARD_DEPENDENCY_REACT_DOM, WIZARD_DEPENDENCY_TYPESCRIPT } from '@packages/scaffold-config/browser/dep...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/stubgql-Browser.ts
packages/frontend-shared/cypress/support/mock-graphql/stubgql-Browser.ts
import type { Browser } from '../generated/test-graphql-types.gen' import { testNodeId } from './clientTestUtils' import { longBrowsersList } from './longBrowsersList' export const stubBrowsers = longBrowsersList.map((browser, i): Browser => { return { ...testNodeId('Browser'), ...browser, isSelected: i...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/clientTestUrqlClient.ts
packages/frontend-shared/cypress/support/mock-graphql/clientTestUrqlClient.ts
import _ from 'lodash' import { pipe, map } from 'wonka' import { Client, subscriptionExchange, TypedDocumentNode, createClient, dedupExchange, errorExchange, ExecutionResult, gql } from '@urql/core' import { executeExchange } from '@urql/exchange-execute' import { makeCacheExchange } from '../../../src/graphql/urqlCli...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/support/mock-graphql/longBrowsersList.ts
packages/frontend-shared/cypress/support/mock-graphql/longBrowsersList.ts
export const longBrowsersList = [ { id: '1', name: 'electron', displayName: 'Electron', family: 'chromium', channel: 'stable', version: '73.0.3683.121', path: '', majorVersion: '73', info: 'Info about electron browser', isFocusSupported: true, isVersionSupported: true, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts
import { hookRequire } from '@packages/server/hook-require' hookRequire({ forceTypeScript: false }) // Important!!! Ensure to import the prod dependencies (i.e. things that will be executing from the inner Cypress of Cypress in Cypress) // from ./prod-dependencies.ts as this is pre-loaded in the v8 snapshot via ./v8-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/e2e/prod-dependencies.ts
packages/frontend-shared/cypress/e2e/prod-dependencies.ts
export { makeGraphQLServer } from '@packages/data-context/graphql/makeGraphQLServer' export { clearCtx, DataContext, globalPubSub, setCtx } from '@packages/data-context' export { buildSchema, execute, ExecutionResult, GraphQLError, parse } from 'graphql' export { Response } from 'cross-fetch' export { getOperationN...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/cypress/e2e/v8-snapshot-entry.ts
packages/frontend-shared/cypress/e2e/v8-snapshot-entry.ts
import './prod-dependencies'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/script/codegen-type-map-ts.ts
packages/frontend-shared/script/codegen-type-map-ts.ts
import type { CodegenPlugin } from '@graphql-codegen/plugin-helpers' import { isInterfaceType, isObjectType } from 'graphql' const plugin: CodegenPlugin<any> = { plugin: (schema, documents, config, info) => { const typesMap = schema.getTypeMap() let typeMap: string[] = [] for (const [typeName, type] of...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/script/generate-stub-specs-ts.ts
packages/frontend-shared/script/generate-stub-specs-ts.ts
import { randomComponents } from './testStubSpecs' import * as fs from 'fs' import * as path from 'path' const argv = process.argv if (argv.includes('--help') || argv.includes('-h') || argv.length < 5 || !['Spec', 'FileParts'].includes(argv[4])) { // eslint-disable-next-line no-console console.log( 'yarn gene...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/script/generate-shiki-theme-ts.ts
packages/frontend-shared/script/generate-shiki-theme-ts.ts
/* eslint-disable no-console */ import { colors } from '@cypress-design/css' import * as fs from 'fs' const filePath = './src/shiki/themes/cypress.theme' fs.readFile(`${filePath}.template.json`, { encoding: 'utf8' }, (err, contents) => { if (err) { throw err } for (let colorName in colors) { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/script/testStubSpecs.ts
packages/frontend-shared/script/testStubSpecs.ts
import JustMyLuck from 'just-my-luck' import { faker } from '@faker-js/faker' import { template, keys, reduce, templateSettings } from 'lodash' import dayjs from 'dayjs' import relativeTime from 'dayjs/plugin/relativeTime' import type { TemplateExecutor } from 'lodash' import combineProperties from 'combine-properties'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/eslint.config.ts
packages/errors/eslint.config.ts
import { baseConfig } from '@packages/eslint-config' export default [ ...baseConfig, { files: ['**/*.spec.ts', '**/*.ts'], languageOptions: { parserOptions: { tsconfigRootDir: __dirname, }, }, }, ]
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/vitest.config.ts
packages/errors/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { env: { CYPRESS_INTERNAL_ENV: 'test', }, include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/errorUtils.ts
packages/errors/src/errorUtils.ts
/* eslint-disable no-console */ import chalk from 'chalk' import _ from 'lodash' import path from 'path' const pluralize = require('pluralize') const humanTime = require('@packages/server/lib/util/human_time') import type { CypressError, ErrorLike } from './errorTypes' export { pluralize, humanTime, } const whi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/errors.ts
packages/errors/src/errors.ts
import AU from 'ansi_up' import os from 'os' import chalk from 'chalk' import _ from 'lodash' import path from 'path' import stripAnsi from 'strip-ansi' import type { BreakingErrResult, TestingType } from '@packages/types' import { humanTime, logError, parseResolvedPattern, pluralize } from './errorUtils' import { err...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/normalizeNetworkErrorMessage.ts
packages/errors/src/normalizeNetworkErrorMessage.ts
const AXIOS_ERROR_NAME = 'AxiosError' export const normalizeNetworkErrorMessage = (error: Error): string => { return error.name === AXIOS_ERROR_NAME ? error.message : `${error.name}: ${error.message}` }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/stackUtils.ts
packages/errors/src/stackUtils.ts
import _ from 'lodash' import type { ErrorLike } from './errorTypes' export const stackLineRegex = /^\s*(at )?.*@?(?:\(?.*(?::\d+:\d+|<unknown>|\[native code\])+\)?)$/ type MessageLines = [string[], string[]] & { messageEnded?: boolean } // returns tuple of [message, stack] export const splitStack = (stack: string) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/stripIndent.ts
packages/errors/src/stripIndent.ts
export const stripIndent = (strings: TemplateStringsArray, ...args: any[]): string => { const parts: any[] = [] for (let i = 0; i < strings.length; i++) { parts.push(strings[i]) if (i < strings.length - 1) { parts.push(`<<${i}>>`) } } const lines = parts.join('').split('\n') const firstLi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/errTemplate.ts
packages/errors/src/errTemplate.ts
import assert from 'assert' import chalk from 'chalk' import _ from 'lodash' import stripAnsi from 'strip-ansi' import { trimMultipleNewLines } from './errorUtils' import { stripIndent } from './stripIndent' import type { ErrTemplateResult, SerializedError } from './errorTypes' interface ListOptions { prefix?: stri...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/errorTypes.ts
packages/errors/src/errorTypes.ts
import type { AllCypressErrors } from './errors' /** * A config validation result */ export interface ConfigValidationFailureInfo { key: string type: string value: any list?: string } /** * An "error like" is an object which may or may-not be an error, * but contains at least a name & message, and probably...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/src/index.ts
packages/errors/src/index.ts
import * as errorsApi from './errors' import * as errorUtils from './errorUtils' import * as stackUtils from './stackUtils' export { theme } from './errTemplate' export { stackUtils, errorUtils } export * from './errors' export * from './errorTypes' export default errorsApi
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/test/visualSnapshotErrors.spec.ts
packages/errors/test/visualSnapshotErrors.spec.ts
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' import chalk from 'chalk' import _ from 'lodash' import path from 'path' import * as errors from '../src' import os from 'os' // these packages need process.env.CYPRESS_INTERNAL_ENV to be set to 'test' to work, which is set in the global vitest ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/test/stripIndent.spec.ts
packages/errors/test/stripIndent.spec.ts
import { describe, it, expect } from 'vitest' import { stripIndent } from '../src/stripIndent' describe('src/stripIndent', () => { it('does not trip right end', () => { const str = stripIndent`\ There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser. [Stack Trace...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/test/errors.spec.ts
packages/errors/test/errors.spec.ts
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' import chalk from 'chalk' import * as errors from '../src' import { parseResolvedPattern } from '../src/errorUtils' // ANSI escape codes for color testing const ansiStyles = { red: { open: '\u001b[31m', close: '\u001b[39m', }, yello...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/errors/test/errTemplate.spec.ts
packages/errors/test/errTemplate.spec.ts
import { describe, it, expect } from 'vitest' import chalk from 'chalk' import { errTemplate, fmt, theme } from '../src/errTemplate' import { stripIndent } from '../src/stripIndent' describe('errTemplate', () => { it('returns an object w/ basic props & forBrowser', () => { const obj = errTemplate`Hello world` ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/vitest.config.ts
packages/https-proxy/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { env: { // disables SSL certificate verification for testing purposes // This is needed to allow self-signed certificates // which are needed for the proxy.spec.ts tests NODE_TLS_REJECT_UNAUTHORIZED: '0', ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/integration/proxy.spec.ts
packages/https-proxy/test/integration/proxy.spec.ts
import { it, describe, expect, beforeEach, beforeAll, afterEach, afterAll, vi } from 'vitest' import path from 'path' import request from '@cypress/request-promise' import DebugProxy from '@cypress/debugging-proxy' import https from 'https' import net from 'net' import network from '@packages/network' import { start as...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/helpers/certs.ts
packages/https-proxy/test/helpers/certs.ts
import fs from 'fs' import path from 'path' export const options = { key: fs.readFileSync(path.join(__dirname, 'certs', 'server', 'my-server.key.pem')), cert: fs.readFileSync(path.join(__dirname, 'certs', 'server', 'my-server.crt.pem')), }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/helpers/proxy.ts
packages/https-proxy/test/helpers/proxy.ts
/* eslint-disable no-console */ import request from '@cypress/request-promise' import { allowDestroy } from '@packages/network' import http from 'http' import path from 'path' import { create as createProxy, reset as resetProxy } from '../../lib/proxy' import type { IncomingMessage, ServerResponse } from 'http' import ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/helpers/https_server.ts
packages/https-proxy/test/helpers/https_server.ts
/* eslint-disable no-console, */ import https from 'https' import { allowDestroy } from '@packages/network' import { options } from './certs' import type { IncomingMessage, ServerResponse } from 'http' const defaultOnRequest = function (req: IncomingMessage, res: ServerResponse) { console.log('HTTPS SERVER REQUE...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/helpers/http_server.ts
packages/https-proxy/test/helpers/http_server.ts
/* eslint-disable no-console, */ import http from 'http' import type { IncomingMessage, ServerResponse } from 'http' export const srv = http.createServer((req: IncomingMessage, res: ServerResponse) => { console.log('HTTP SERVER REQUEST URL:', req.url) console.log('HTTP SERVER REQUEST HEADERS:', req.headers) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/helpers/certs/create-certs.ts
packages/https-proxy/test/helpers/certs/create-certs.ts
import { CA } from '../../../lib/ca' CA.create(process.env.CA_PATH)
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/unit/server.spec.ts
packages/https-proxy/test/unit/server.spec.ts
import { describe, it, expect, beforeEach, vi } from 'vitest' import EE from 'events' import { create as createServer } from '../../lib/server' import { CA } from '../../lib/ca' import type { Server } from '../../lib/server' import type { Socket } from 'net' import type { IncomingMessage } from 'http' vi.mock('../../l...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/test/unit/ca.spec.ts
packages/https-proxy/test/unit/ca.spec.ts
import { describe, it, expect, beforeEach, vi } from 'vitest' import os from 'os' import fs from 'fs-extra' import path from 'path' import { CA } from '../../lib/ca' vi.mock('fs-extra', async (importActual) => { const actual = await importActual() return { default: { // @ts-expect-error ...actual....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/lib/ca.ts
packages/https-proxy/lib/ca.ts
import _ from 'lodash' import { promisify } from 'util' import debugModule from 'debug' import os from 'os' import path from 'path' import { pki, md } from 'node-forge' import fs from 'fs-extra' const debug = debugModule('cypress:https-proxy:ca') // if this is higher than the user's cached CA version, the Cypress // ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/lib/server.ts
packages/https-proxy/lib/server.ts
import _ from 'lodash' import { allowDestroy, connect, httpUtils } from '@packages/network' import debugModule from 'debug' import https from 'https' import net from 'net' import { hostAndPort } from './util/parse' import semaphore from 'semaphore' import url from 'url' import type { CA } from './ca' import type { Inco...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/lib/proxy.ts
packages/https-proxy/lib/proxy.ts
import { CA } from './ca' import { create as createServer, reset as resetServer } from './server' export async function create (dir: string, port: number, options: any) { const ca = await CA.create(dir) const server = await createServer(ca, port, options) return server } export function reset () { return re...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/lib/index.ts
packages/https-proxy/lib/index.ts
import { create as createProxy, reset as resetProxy } from './proxy' import { CA } from './ca' export { createProxy, resetProxy, CA } export type { Server } from './server'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/https-proxy/lib/util/parse.ts
packages/https-proxy/lib/util/parse.ts
import { parse } from 'url' export function parseHost (hostString: string, defaultPort: number) { let m m = hostString.match(/^http:\/\/(.*)/) if (m) { const parsedUrl = parse(hostString) return { host: parsedUrl.hostname, port: parsedUrl.port, } } const hostPort = hostString.spli...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/cypress.config.ts
packages/launchpad/cypress.config.ts
import { defineConfig } from 'cypress' import { snapshotCypressDirectory } from './cypress/tasks/snapshotsScaffold' import { uninstallDependenciesInScaffoldedProject } from './cypress/tasks/uninstallDependenciesInScaffoldedProject' export default defineConfig({ projectId: 'ypt4pf', viewportWidth: 800, viewportHe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/vue-shims.d.ts
packages/launchpad/vue-shims.d.ts
declare module 'virtual:*' { import type { Component } from 'vue' const src: Component export default src } declare module 'virtual:icons/*' { // eslint-disable-next-line no-duplicate-imports import type { FunctionalComponent, SVGAttributes } from 'vue' const component: FunctionalComponent<SVGAttributes> ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/vite-env.d.ts
packages/launchpad/vite-env.d.ts
/// <reference types="vite/client" /> /// <reference types="vite-svg-loader" />
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/main.ts
packages/launchpad/src/main.ts
import { createApp } from 'vue' import { HeaderBar_HeaderBarQueryDocument } from './generated/graphql' import './main.scss' import 'tailwindcss/tailwind.css' import urql from '@urql/vue' import App from './App.vue' import Toast, { POSITION } from 'vue-toastification' import 'vue-toastification/dist/index.css' import { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/global/GlobalProjectCard.cy.tsx
packages/launchpad/src/global/GlobalProjectCard.cy.tsx
import GlobalProjectCard from './GlobalProjectCard.vue' import { GlobalProjectCardFragmentDoc } from '../generated/graphql-test' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' const defaultPath = '/usr/local/dev/projects/some-test-title' const men...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/global/GlobalPage.cy.tsx
packages/launchpad/src/global/GlobalPage.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import GlobalPage from './GlobalPage.vue' import type { GlobalPageFragment } from '../generated/graphql-test' import { GlobalPageFragmentDoc, GlobalPage_AddProjectDocument } from '../generated/graphql-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/global/GlobalEmpty.cy.tsx
packages/launchpad/src/global/GlobalEmpty.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import GlobalEmpty from './GlobalEmpty.vue' const emptyText = defaultMessages.globalPage.empty describe('<GlobalEmpty />', () => { beforeEach(() => { cy.mount(() => (<div class="p-12 min-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/global/GlobalPageHeader.cy.tsx
packages/launchpad/src/global/GlobalPageHeader.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import GlobalPageHeader from './GlobalPageHeader.vue' import { ref } from 'vue' const searchLabel = defaultMessages.globalPage.searchPlaceholder const dropzoneSelector = '[data-cy="dropzone"] > div' c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/components/code/FileRow.cy.tsx
packages/launchpad/src/components/code/FileRow.cy.tsx
/* eslint-disable no-irregular-whitespace */ import FileRow from './FileRow.vue' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' const content = `import { defineConfig } from 'cypress' export default defineConfig({ component: { devServer: { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/utils/stringToRegexp.ts
packages/launchpad/src/utils/stringToRegexp.ts
export function stringToRegexp (s: string): RegExp { return new RegExp(s) } export interface FilePart { text: string highlight: boolean }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/welcome/MajorVersionWelcome.cy.tsx
packages/launchpad/src/welcome/MajorVersionWelcome.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import MajorVersionWelcome from './MajorVersionWelcome.vue' import interval from 'human-interval' import { GET_MAJOR_VERSION_FOR_CONTENT } from '@packages/types' const text = defaultMessages.majorVers...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/warning/WarningList.cy.tsx
packages/launchpad/src/warning/WarningList.cy.tsx
import { WarningListFragmentDoc } from '../generated/graphql-test' import WarningList from './WarningList.vue' import { faker } from '@faker-js/faker' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import { WarningList_RemoveWarningDocument } from ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/CompareTestingTypes.cy.tsx
packages/launchpad/src/setup/CompareTestingTypes.cy.tsx
import CompareTestingTypes from './CompareTestingTypes.vue' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' describe('TestingTypeCards', () => { it('renders expected content', () => { cy.mount(CompareTestingTypes) Object.values(defaultMes...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/ButtonBar.cy.tsx
packages/launchpad/src/setup/ButtonBar.cy.tsx
import ButtonBar from './ButtonBar.vue' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' const { next: nextLabel, back: backLabel } = defaultMessages.setupPage.step describe('<ButtonBar />', () => { let nextFn: ReturnType<typeof cy.stub> let ba...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/OpenBrowserList.cy.tsx
packages/launchpad/src/setup/OpenBrowserList.cy.tsx
import { OpenBrowserListFragmentDoc } from '../generated/graphql-test' import OpenBrowserList from './OpenBrowserList.vue' import { longBrowsersList } from '@packages/frontend-shared/cypress/support/mock-graphql/longBrowsersList' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defau...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/ManualInstall.cy.tsx
packages/launchpad/src/setup/ManualInstall.cy.tsx
import sinon from 'sinon' import { ManualInstallFragmentDoc } from '../generated/graphql-test' import ManualInstall from './ManualInstall.vue' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import { Clipboard_CopyToClipboardDocument } from '../gene...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/EnvironmentSetup.cy.tsx
packages/launchpad/src/setup/EnvironmentSetup.cy.tsx
import { EnvironmentSetupFragmentDoc } from '../generated/graphql-test' import EnvironmentSetup from './EnvironmentSetup.vue' describe('<EnvironmentSetup />', { viewportWidth: 800 }, () => { it('displays framework options and links to community defined frameworks', () => { cy.mountFragment(EnvironmentSetupFragme...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/ScaffoldedFiles.cy.tsx
packages/launchpad/src/setup/ScaffoldedFiles.cy.tsx
import { ScaffoldedFilesFragmentDoc, } from '../generated/graphql-test' import ScaffoldedFiles from './ScaffoldedFiles.vue' describe('<ScaffoldedFiles />', () => { beforeEach(() => { cy.mountFragment(ScaffoldedFilesFragmentDoc, { render: (gql) => { return ( <div> <Scaffolded...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/InstallDependencies.cy.tsx
packages/launchpad/src/setup/InstallDependencies.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' import InstallDependencies from './InstallDependencies.vue' import { InstallDependenciesFragmentDoc } from '../generated/graphql-test' import { WIZARD_DEPENDENCY_REACT, WIZARD_DEPENDENCY_REACT_DOM, WIZ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/WizardLayout.cy.tsx
packages/launchpad/src/setup/WizardLayout.cy.tsx
import WizardLayout from './WizardLayout.vue' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' describe('<WizardLayout />', () => { it('playground', { viewportWidth: 800, viewportHeight: 600 }, () => { cy.mount(() => ( <WizardLayout> ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/types.ts
packages/launchpad/src/setup/types.ts
import type { SupportedBundlers, } from '../generated/graphql' interface RootOption { name: string id: string isDetected?: boolean } export interface FrameworkOption extends RootOption { type: string supportStatus: Cypress.ResolvedComponentFrameworkDefinition['supportStatus'] icon?: string } interface ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/Wizard.cy.tsx
packages/launchpad/src/setup/Wizard.cy.tsx
import Wizard from './Wizard.vue' import { WizardFragmentDoc } from '../generated/graphql-test' describe('Wizard', () => { it('works', () => { cy.mountFragment(WizardFragmentDoc, { render: (gqlVal) => { return <Wizard gql={gqlVal} /> }, }) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/SelectFrameworkOrBundler.cy.tsx
packages/launchpad/src/setup/SelectFrameworkOrBundler.cy.tsx
import { ref } from 'vue' import SelectFrameworkOrBundler from './SelectFrameworkOrBundler.vue' import type { Option } from './types' const manyOptions: Readonly<Option[]> = [ { name: 'Vue.js', id: 'vue', type: 'vue', isDetected: true, supportStatus: 'full', }, { name: 'React.js', id:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/setup/TestingTypeCards.cy.tsx
packages/launchpad/src/setup/TestingTypeCards.cy.tsx
import { TestingTypeCardsFragmentDoc, } from '../generated/graphql-test' import TestingTypeCards from './TestingTypeCards.vue' // tslint:disable-next-line: no-implicit-dependencies - need to handle this import { defaultMessages } from '@cy/i18n' describe('TestingTypeCards', () => { it('renders correct label when n...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/src/directives/ClickOutside.ts
packages/launchpad/src/directives/ClickOutside.ts
import type { DirectiveBinding } from 'vue' /** * Runs the binding when clicking outside of the targetted component */ export const ClickOutside = { beforeMount (el: any, binding: DirectiveBinding<any>) { // Define ourClickEventHandler const ourClickEventHandler = (event: MouseEvent) => { if (!el.con...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/cypress/tasks/uninstallDependenciesInScaffoldedProject.ts
packages/launchpad/cypress/tasks/uninstallDependenciesInScaffoldedProject.ts
import fs from 'fs/promises' import path from 'path' export async function uninstallDependenciesInScaffoldedProject ({ currentProject }) { await fs.rm(path.resolve(currentProject, '../node_modules'), { recursive: true, force: true }) return null }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/cypress/tasks/snapshotsScaffold.ts
packages/launchpad/cypress/tasks/snapshotsScaffold.ts
import path from 'path' import globby from 'globby' import fs from 'fs-extra' import disparity from 'disparity' import dedent from 'dedent' import { cyTmpDir } from '@tooling/system-tests' const systemTestsDir = path.join(__dirname, '..', '..', '..', '..', 'system-tests', 'projects') export interface SnapshotScaffold...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/launchpad/cypress/integration/visit-google.spec.ts
packages/launchpad/cypress/integration/visit-google.spec.ts
describe('visit google', () => { it('goes to google.com', () => { cy.visit('https://google.com') }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false