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/proxy/lib/http/util/rewriter.ts | packages/proxy/lib/http/util/rewriter.ts | import * as inject from './inject'
import * as astRewriter from './ast-rewriter'
import * as regexRewriter from './regex-rewriter'
import type { CypressWantsInjection } from '../../types'
import type { SerializableAutomationCookie } from '@packages/server/lib/util/cookies'
export type SecurityOpts = {
isNotJavascrip... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/service-worker-manager.ts | packages/proxy/lib/http/util/service-worker-manager.ts | import Debug from 'debug'
import pDefer from 'p-defer'
import type { BrowserPreRequest } from '../../types'
import type Protocol from 'devtools-protocol'
const debug = Debug('cypress:proxy:service-worker-manager')
type ServiceWorkerRegistration = {
registrationId: string
scopeURL: string
hasFetchHandler: boolea... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/csp-header.ts | packages/proxy/lib/http/util/csp-header.ts | import type { OutgoingHttpHeaders } from 'http'
const cspRegExp = /[; ]*([^\n\r; ]+) ?([^\n\r;]+)*/g
export const cspHeaderNames = ['content-security-policy', 'content-security-policy-report-only'] as const
export const nonceDirectives = ['script-src-elem', 'script-src', 'default-src']
export const problematicCspDi... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/replace_stream.ts | packages/proxy/lib/http/util/replace_stream.ts | import through from 'through'
const GraphemeSplitter = require('grapheme-splitter')
interface IGraphemeSplitter {
nextBreak: (string: string, at: number) => number
}
const splitter: IGraphemeSplitter = new GraphemeSplitter()
/**
* UTF-8 grapheme aware stream replacer
* https://github.com/cypress-io/cypress/pull... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/eslint.config.ts | packages/stderr-filtering/eslint.config.ts | import { baseConfig } from '@packages/eslint-config'
export default [
...baseConfig,
{
files: ['**/*.{ts,js,jsx,tsx,vue}'],
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/stderr-filtering/vitest.config.ts | packages/stderr-filtering/vitest.config.ts | import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['**/__spec__/*.spec.ts'],
exclude: ['**/node_modules/**', '**/dist/**'],
coverage: {
provider: 'v8',
include: ['lib/**/*.ts'],
exclude: ['**/node_modu... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/TagStream.ts | packages/stderr-filtering/lib/TagStream.ts | import { Transform } from 'stream'
import { START_TAG, END_TAG } from './constants'
import { StringDecoder } from 'string_decoder'
import Debug from 'debug'
import { tagsDisabled } from './tagsDisabled'
const debug = Debug('cypress:stderr-filtering:TagStream')
const debugVerbose = Debug('cypress-verbose:stderr-filteri... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/writeWithBackpressure.ts | packages/stderr-filtering/lib/writeWithBackpressure.ts | import { Writable } from 'stream'
export async function writeWithBackpressure<T> (toStream: Writable, chunk: T): Promise<void> {
return new Promise((resolve, reject) => {
try {
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(String(chunk))
const ret = toStream.write(buffer)
if (ret... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/Filter.ts | packages/stderr-filtering/lib/Filter.ts | import { type Writable } from 'stream'
import type { Debugger } from 'debug'
import { START_TAG, END_TAG } from './constants'
import { FilterPrefixedContent } from './FilterPrefixedContent'
import { FilterTaggedContent } from './FilterTaggedContent'
import { WriteToDebug } from './WriteToDebug'
import { tagsDisabled } ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/LineDecoder.ts | packages/stderr-filtering/lib/LineDecoder.ts | /**
* Decodes incoming string chunks into complete lines, handling partial lines across chunk boundaries.
*
* This class buffers incoming string data and provides an iterator interface to yield complete
* lines. It handles the case where a line might be split across multiple chunks by maintaining
* an internal buf... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/constants.ts | packages/stderr-filtering/lib/constants.ts | /**
* These tags are used to mark the beginning and end of error content that should
* be filtered from stderr output. The tags are designed to be unique and easily
* identifiable in log output.
*/
export const START_TAG = '<<<CYPRESS.STDERR.START>>>'
/**
* Marks the end of error content that should be filtered f... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/FilterPrefixedContent.ts | packages/stderr-filtering/lib/FilterPrefixedContent.ts | import { Transform, Writable } from 'stream'
import { StringDecoder } from 'string_decoder'
import { LineDecoder } from './LineDecoder'
import Debug from 'debug'
const debugStderr = Debug('cypress:stderr')
import { writeWithBackpressure } from './writeWithBackpressure'
/**
* Filters content based on a prefix pattern,... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/FilterTaggedContent.ts | packages/stderr-filtering/lib/FilterTaggedContent.ts | import { Transform, Writable } from 'stream'
import { StringDecoder } from 'string_decoder'
import { LineDecoder } from './LineDecoder'
import Debug from 'debug'
import { writeWithBackpressure } from './writeWithBackpressure'
const debugVerbose = Debug('cypress-verbose:stderr-filtering:FilterTaggedContent')
/**
* Fil... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/logError.ts | packages/stderr-filtering/lib/logError.ts | /**
* Standard error logging tags used for stderr filtering
*/
import { START_TAG, END_TAG } from './constants'
import { tagsDisabled } from './tagsDisabled'
/**
* Logs error messages with special tags for stderr filtering.
*
* This function wraps console.error calls with start and end tags that can be
* used by... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/index.ts | packages/stderr-filtering/lib/index.ts | export { FilterTaggedContent } from './FilterTaggedContent'
export { FilterPrefixedContent } from './FilterPrefixedContent'
export { TagStream } from './TagStream'
export { WriteToDebug } from './WriteToDebug'
export { filter } from './Filter'
export { logError } from './logError'
export { START_TAG, END_TAG, DEB... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/tagsDisabled.ts | packages/stderr-filtering/lib/tagsDisabled.ts | export function tagsDisabled () {
return process.env.ELECTRON_ENABLE_LOGGING === '1' || process.env.CYPRESS_INTERNAL_ENV === 'development'
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/WriteToDebug.ts | packages/stderr-filtering/lib/WriteToDebug.ts | import { Writable } from 'stream'
import type { Debugger } from 'debug'
import { StringDecoder } from 'node:string_decoder'
import { LineDecoder } from './LineDecoder'
/**
* A writable stream that routes incoming data to a debug logger.
*
* This class extends Writable to provide a stream interface that processes in... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/FilterPrefixedContent.spec.ts | packages/stderr-filtering/lib/__spec__/FilterPrefixedContent.spec.ts | import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
import { FilterPrefixedContent } from '../FilterPrefixedContent'
import { LineDecoder } from '../LineDecoder'
import { StringDecoder } from 'string_decoder'
import { writeWithBackpressure } from '../writeWithBackpressure'
import { Writable } from ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/Filter.spec.ts | packages/stderr-filtering/lib/__spec__/Filter.spec.ts | import { vi, describe, it, expect, beforeEach, afterEach } from 'vitest'
import { filter } from '../Filter'
import { FilterPrefixedContent } from '../FilterPrefixedContent'
import { FilterTaggedContent } from '../FilterTaggedContent'
import { WriteToDebug } from '../WriteToDebug'
import { START_TAG, END_TAG, DEBUG_PREF... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/WriteToDebug.spec.ts | packages/stderr-filtering/lib/__spec__/WriteToDebug.spec.ts | import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
import { Writable } from 'stream'
import { WriteToDebug } from '../WriteToDebug'
import { StringDecoder } from 'node:string_decoder'
import { LineDecoder } from '../LineDecoder'
vi.mock('node:string_decoder')
vi.mock('../LineDecoder')
const Mock... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/LineDecoder.spec.ts | packages/stderr-filtering/lib/__spec__/LineDecoder.spec.ts | import { describe, it, expect } from 'vitest'
import { LineDecoder } from '../LineDecoder'
import { END_TAG } from '../constants'
describe('LineDecoder', () => {
let decoder: LineDecoder
beforeEach(() => {
decoder = new LineDecoder()
})
describe('when a chunk with a trailing newline is provided', () => {... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/FilterTaggedContent.spec.ts | packages/stderr-filtering/lib/__spec__/FilterTaggedContent.spec.ts | import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
import { FilterTaggedContent } from '../FilterTaggedContent'
import { LineDecoder } from '../LineDecoder'
import { StringDecoder } from 'string_decoder'
import { Writable } from 'stream'
import { writeWithBackpressure } from '../writeWithBackpress... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/writeWithBackpressure.spec.ts | packages/stderr-filtering/lib/__spec__/writeWithBackpressure.spec.ts | import { describe, it, expect, vi, beforeEach, MockedObject } from 'vitest'
import { writeWithBackpressure } from '../writeWithBackpressure'
import { Writable } from 'stream'
describe('writeWithBackpressure', () => {
let output: MockedObject<Writable>
beforeEach(() => {
vi.clearAllMocks()
output = {
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/logError.spec.ts | packages/stderr-filtering/lib/__spec__/logError.spec.ts | import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
import { logError } from '../logError'
import { START_TAG, END_TAG } from '../constants'
describe('logError', () => {
let consoleErrorSpy: ReturnType<typeof vi.spyOn>
beforeEach(() => {
// Mock console.error at the module boundary
co... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/stderr-filtering/lib/__spec__/TagStream.spec.ts | packages/stderr-filtering/lib/__spec__/TagStream.spec.ts | import { describe, it, expect, vi, MockedObject } from 'vitest'
import { TagStream } from '../TagStream'
import { START_TAG, END_TAG } from '../constants'
import { StringDecoder } from 'string_decoder'
vi.mock('stream')
vi.mock('string_decoder')
describe('TagStream', () => {
let mockStringDecoder: MockedObject<Stri... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/icons/vitest.config.ts | packages/icons/vitest.config.ts | import { defineConfig } from 'vitest/config'
export default defineConfig({
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/icons/index.ts | packages/icons/index.ts | import path from 'path'
const dist = [__dirname, 'dist']
function distPath (...args: string[]) {
return path.join.apply(path, dist.concat([...args]))
}
export const getPathToFavicon = (filename: string) => {
return distPath('favicon', filename)
}
export const getPathToIcon = (filename: string) => {
return dis... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/icons/scripts/build.ts | packages/icons/scripts/build.ts | import fs from 'fs-extra'
import path from 'path'
import { exec } from 'child_process'
import os from 'os'
async function build () {
const distPath = path.join(__dirname, '../dist')
const assetsPath = path.join(__dirname, '../assets')
const iconsPath = path.join(distPath, 'icons')
const iconsetPath = path.joi... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/icons/scripts/ico.ts | packages/icons/scripts/ico.ts | import fs from 'fs'
import toIco from 'to-ico'
const files = [
fs.readFileSync('./assets/icons/icon_16x16.png'),
fs.readFileSync('./assets/icons/icon_24x24.png'),
fs.readFileSync('./assets/icons/icon_32x32.png'),
fs.readFileSync('./assets/icons/icon_48x48.png'),
fs.readFileSync('./assets/icons/icon_64x64.png... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/icons/test/icons.spec.ts | packages/icons/test/icons.spec.ts | import { describe, it, expect } from 'vitest'
import * as iconsESM from '../index.mjs'
import * as iconsCjs from '../index.js'
const cwd = process.cwd()
describe('Cypress Icons', function () {
it('returns path to favicon', function () {
expect(iconsESM.getPathToFavicon('favicon-red.ico')).toEqual(`${cwd }/dist/... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/root/index.ts | packages/root/index.ts | import pkg from '../../package.json'
export default pkg
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/resolve-dist/lib/index.ts | packages/resolve-dist/lib/index.ts | import path from 'path'
import fs from 'fs-extra'
export type RunnerPkg = 'app' | 'runner'
type FoldersWithDist = 'static' | 'driver' | RunnerPkg | 'launchpad'
export const resolveFromPackages = (...args: string[]) => {
return path.join(...[__dirname, '..', '..', ...args])
}
const getRunnerContents = (filename: s... | 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.config.ts | packages/frontend-shared/cypress.config.ts | // tslint:disable-next-line: no-implicit-dependencies - requires cypress
import { defineConfig } from 'cypress'
export default defineConfig({
projectId: 'ypt4pf',
viewportWidth: 800,
viewportHeight: 850,
retries: {
runMode: 2,
openMode: 0,
},
reporter: '../../node_modules/cypress-multi-reporters/in... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/vue-shims.d.ts | packages/frontend-shared/vue-shims.d.ts | /* eslint-disable import/no-duplicates */
declare module 'virtual:*' {
import { Component } from 'vue'
const src: Component
export default src
}
declare module 'virtual:icons/*' {
import { FunctionalComponent, SVGAttributes } from 'vue'
const component: FunctionalComponent<SVGAttributes>
export default com... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/frontend-shared/vite-env.d.ts | packages/frontend-shared/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/frontend-shared/src/custom.d.ts | packages/frontend-shared/src/custom.d.ts | declare module '*.svg' {
const content: string
export default content
}
| 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/index.ts | packages/frontend-shared/src/index.ts | export * from './graphql/urqlClient'
| 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/store/user-project-status-store.ts | packages/frontend-shared/src/store/user-project-status-store.ts | import type { BannersState } from '@packages/types'
import { defineStore } from 'pinia'
interface LoginUserData {
id: string
fullName: string | null
email: string | null
}
export interface UserProjectStatusState {
hasInitiallyLoaded: boolean
isLoginConnectOpen: boolean
utmMedium: string
utmContent?: str... | 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/store/index.ts | packages/frontend-shared/src/store/index.ts | export * from './user-project-status-store'
import { createPinia as _createPinia } from 'pinia'
// Reusable installation function, used as an entry point for tests that
// require an identical setup to main.ts
export const createPinia = () => {
return _createPinia()
}
| 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/graphql/urqlClient.ts | packages/frontend-shared/src/graphql/urqlClient.ts | import {
Exchange,
Client,
createClient,
dedupExchange,
errorExchange,
fetchExchange,
subscriptionExchange,
CombinedError,
} from '@urql/core'
import { devtoolsExchange } from '@urql/devtools'
import { useToast } from 'vue-toastification'
import type { SocketShape } from '@packages/socket/browser/client... | 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/graphql/urqlDetailedDebugExchange.ts | packages/frontend-shared/src/graphql/urqlDetailedDebugExchange.ts | import md5 from 'md5'
import type { Exchange } from '@urql/core'
import { pipe, tap } from 'wonka'
import jsonStableStringify from 'json-stable-stringify'
import type { OperationDefinitionNode } from 'graphql'
import { print } from 'graphql'
declare global {
interface Window {
__toPrintClear: Function
__toPr... | 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/graphql/urqlGlobalSubscriptions.ts | packages/frontend-shared/src/graphql/urqlGlobalSubscriptions.ts | import { Client, gql } from '@urql/core'
import { pipe, subscribe } from 'wonka'
import { GlobalSubscriptions_ErrorWarningChangeDocument, GlobalSubscriptions_PushFragmentDocument } from '../generated/graphql'
gql`
subscription GlobalSubscriptions_PushFragment {
pushFragment {
target
fragment
data
... | 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/graphql/urqlExchangePubsub.ts | packages/frontend-shared/src/graphql/urqlExchangePubsub.ts | import { pipe, tap } from 'wonka'
import type { Exchange, Operation, OperationResult } from '@urql/core'
import type { SocketShape } from '@packages/socket/browser/client'
import type { DefinitionNode, DocumentNode, OperationDefinitionNode } from 'graphql'
export const pubSubExchange = (io: SocketShape): Exchange => {... | 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/graphql/urqlFetchSocketAdapter.ts | packages/frontend-shared/src/graphql/urqlFetchSocketAdapter.ts | import _ from 'lodash'
import type { SocketShape } from '@packages/socket/browser/client'
import type { ClientOptions } from '@urql/core'
export const urqlFetchSocketAdapter = (io: SocketShape): ClientOptions['fetch'] => {
return (url, fetchOptions: RequestInit = {}) => {
return new Promise<Response>((resolve, r... | 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/graphql/urqlExchangeNamedRoute.ts | packages/frontend-shared/src/graphql/urqlExchangeNamedRoute.ts | import { getOperationName } from '@urql/core'
import type { Exchange } from '@urql/core'
import { map, pipe } from 'wonka'
export const namedRouteExchange: Exchange = ({ client, forward }) => {
return (ops$) => {
return forward(pipe(
ops$,
map((o) => {
// Only prefix the URL if it hasn't bee... | 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/composables/useMarkdown.ts | packages/frontend-shared/src/composables/useMarkdown.ts | /**
* Add styling for markdown components here.
* NOTICE: For Syntax Highlighting, please use the ShikiHighlight component.
* We could eventually use Shiki as a Markdown plugin, but I don't want to get into it right now.
*/
import type { Ref } from 'vue'
import { computed, unref } from 'vue'
import MarkdownIt from ... | 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/composables/index.ts | packages/frontend-shared/src/composables/index.ts | import { computed } from 'vue'
/**
* This snippet comes from Thorsten Lünborg and is explained in this blog post https://www.vuemastery.com/blog/vue-3-data-down-events-up/
* @example const localValue = useModelWrapper(props, emit, 'modelValue')
*/
export function useModelWrapper<T, N extends string = 'modelValue'> ... | 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/composables/examples/UseCohortsExample.cy.tsx | packages/frontend-shared/src/composables/examples/UseCohortsExample.cy.tsx | import UseCohortsExample, { CopyOption } from './UseCohortsExample.vue'
import { UseCohorts_DetermineCohortDocument } from '../../generated/graphql'
describe('useCohorts example', () => {
const copyOptions: CopyOption[] = [
{ cohort: 'A', value: 'Notification Title A' },
{ cohort: 'B', value: 'Notification T... | 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/composables/examples/UseMarkdownExample.cy.tsx | packages/frontend-shared/src/composables/examples/UseMarkdownExample.cy.tsx | import { ExternalLink_OpenExternalDocument } from '../../generated/graphql'
import UseMarkdownExample from './UseMarkdownExample.vue'
describe('useMarkdown', () => {
it('renders styled markdown', () => {
const text = `
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Lorem ... | 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/components/Spinner.cy.tsx | packages/frontend-shared/src/components/Spinner.cy.tsx | import Spinner from './Spinner.vue'
describe('<Spinner />', { viewportHeight: 200, viewportWidth: 200 }, () => {
it('renders', () => {
cy.mount(() => (
<Spinner />
))
cy.percySnapshot()
})
})
| 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/components/Card.cy.tsx | packages/frontend-shared/src/components/Card.cy.tsx | import Card from './Card.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import IconE2E from '~icons/cy/testing-type-e2e_x64.svg'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import IconE2ESolid from '~icons/cy/t... | 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/components/ListRowHeader.cy.tsx | packages/frontend-shared/src/components/ListRowHeader.cy.tsx | import ListRowHeader from './ListRowHeader.vue'
import { faker } from '@faker-js/faker'
import { IconFileChangesAdded, IconActionAdd } from '@cypress-design/vue-icon'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import Button from '@cy/components/Button.vue'
faker.seed(1)
const d... | 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/components/AlertHeader.cy.tsx | packages/frontend-shared/src/components/AlertHeader.cy.tsx | import AlertHeader from './AlertHeader.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import CoffeeIcon from '~icons/mdi/coffee'
describe('<AlertHeader />', () => {
it('playground', () => {
cy.mount(() => (
<div class="text-center p-4">
<Alert... | 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/components/Button.cy.tsx | packages/frontend-shared/src/components/Button.cy.tsx | import Button, { ButtonVariants } from './Button.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import IconCoffee from '~icons/mdi/coffee'
import { createRouter, createWebHistory } from 'vue-router'
const prefixIcon = () => <IconCoffee data-cy="coffee-icon"/>
de... | 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/components/InlineCodeFragment.cy.tsx | packages/frontend-shared/src/components/InlineCodeFragment.cy.tsx | import InlineCodeFragment from './InlineCodeFragment.vue'
describe('<InlineCodeFragment/>', () => {
it('renders fragment', () => {
cy.mount(() => <InlineCodeFragment>I am code</InlineCodeFragment>)
cy.contains('I am code')
.should('be.visible')
})
})
| 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/components/TerminalPrompt.cy.tsx | packages/frontend-shared/src/components/TerminalPrompt.cy.tsx | import TerminalPrompt from './TerminalPrompt.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('<TerminalPrompt />', () => {
it('renders without overflow', { viewportWidth: 800, viewportHeight: 120 }, () => {
cy.mount(() =>... | 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/components/StandardModal.cy.tsx | packages/frontend-shared/src/components/StandardModal.cy.tsx | import StandardModal from './StandardModal.vue'
import Tooltip from './Tooltip.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import { DialogOverlay } from '@headlessui/vue'
import { ref } from 'vue'
const title = 'Test Title'
const 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/src/components/Alert.cy.tsx | packages/frontend-shared/src/components/Alert.cy.tsx | // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import CoffeeIcon from '~icons/mdi/coffee'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import LoadingIcon from '~icons/mdi/loading'
import { faker } from '@faker-js/fak... | 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/components/Icon.cy.tsx | packages/frontend-shared/src/components/Icon.cy.tsx | import Icon from './Icon.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import IconCoffee from '~icons/mdi/coffee'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import IconHeart from '~icons/mdi/heart'
describe(... | 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/components/Select.cy.tsx | packages/frontend-shared/src/components/Select.cy.tsx | // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import { h } from 'vue'
// Subject Under Test
import Select from './Select.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import IconHear... | 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/components/ShikiHighlight.cy.tsx | packages/frontend-shared/src/components/ShikiHighlight.cy.tsx | import ShikiHighlight from './ShikiHighlight.vue'
import { initHighlighter } from './highlight'
const code = `// This is sample code to test with the Shiki Highlight component
const MY_VALUE = 'sample text'
/**
* This is a sample function
*/
const myFunction = (val) => {
return val
}
module.exports = {
sample... | 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/components/CodeTag.cy.tsx | packages/frontend-shared/src/components/CodeTag.cy.tsx | import CodeTag from './CodeTag.vue'
describe('<CodeTag />', () => {
it('looks good in code', () => {
cy.mount(() => (<p>
Create a <CodeTag>sample_spec.js</CodeTag> file.
</p>))
})
it('displays colored code', () => {
cy.mount(() => (<p>
Create a <CodeTag class="text-red-500">sample_spec.j... | 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/components/Collapsible.cy.tsx | packages/frontend-shared/src/components/Collapsible.cy.tsx | import Collapsible from './Collapsible.vue'
import { faker } from '@faker-js/faker'
faker.seed(1)
const targetText = 'Target'
const contentText = 'Content'
const targetSelector = '[data-testid=target]'
const contentSelector = '[data-testid=content]'
const defaultTargetSlot = ({ open }) => <div data-testid="target" cl... | 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/components/Radio.cy.tsx | packages/frontend-shared/src/components/Radio.cy.tsx | import { ref } from 'vue'
import Radio from './Radio.vue'
describe('<Radio />', () => {
const options = [
{
label: 'Private',
description: 'Only invited users can view recorded test results',
value: 'private',
},
{
label: 'Public',
description: 'Everyone can view recorded te... | 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/components/ResultCounts.cy.tsx | packages/frontend-shared/src/components/ResultCounts.cy.tsx | // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import ResultCounts from './ResultCounts.vue'
const validateResult = (type: string, value: string | number) => {
cy.get(`[data-cy="runResults-${type}-count"]`)
.should('contain', value)
.... | 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/components/Badge.cy.tsx | packages/frontend-shared/src/components/Badge.cy.tsx | import Badge, { statusClassesObject } from './Badge.vue'
describe('<Badge />', () => {
it('playground', { viewportWidth: 100, viewportHeight: 300 }, () => {
cy.mount(() => (
<div class="text-center p-4">
<Badge status="success" label="Success" />
<Badge status="warning" label="Warning" />
... | 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/components/NoInternetConnection.cy.tsx | packages/frontend-shared/src/components/NoInternetConnection.cy.tsx | import NoInternetConnection from './NoInternetConnection.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('<NoInternetConnection />', () => {
it('renders expected contents', { viewportHeight: 300, viewportWidth: 300 }, () => {... | 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/components/StatusIndicator.cy.tsx | packages/frontend-shared/src/components/StatusIndicator.cy.tsx | import _ from 'lodash'
import type { StatusIndicatorType } from './StatusIndicator.vue'
import StatusIndicator from './StatusIndicator.vue'
const types = {
success: `Sweet`,
error: `Ahhh!`,
warning: `Hmmmm...`,
disabled: `Nah`,
} as const
const renderStatusIndicator = (text: string, status: StatusIndicatorTyp... | 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/components/CopyText.cy.tsx | packages/frontend-shared/src/components/CopyText.cy.tsx | import CopyText from './CopyText.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('<CopyText />', () => {
it('renders without overflow', { viewportWidth: 800, viewportHeight: 120 }, () => {
cy.mount(() => (
<div clas... | 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/components/Tooltip.cy.tsx | packages/frontend-shared/src/components/Tooltip.cy.tsx | import Tooltip from './Tooltip.vue'
import Button from './Button.vue'
const slotContents = (x: number) => ({
popper: () => <span>Tooltip {x}</span>,
default: () => <span class={`default-slot${x}`}>hello</span>,
})
describe('<Tooltip />', () => {
it('playground', () => {
cy.mount(() => {
return (
... | 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/components/BaseLink.cy.tsx | packages/frontend-shared/src/components/BaseLink.cy.tsx | import BaseLink from './BaseLink.vue'
describe('<BaseLink />', () => {
it('renders with default styles', { viewportWidth: 100, viewportHeight: 60 }, () => {
cy.mount(() => (
<BaseLink
href="http://test.test"
>Test Link</BaseLink>
))
cy.get('a').should('have.class', 'text-indigo-500')... | 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/components/Input.cy.tsx | packages/frontend-shared/src/components/Input.cy.tsx | import Input from './Input.vue'
import { ref } from 'vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import CoffeeIcon from '~icons/mdi/coffee'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these module imports
import LoadingIcon from... | 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/components/Checkbox.cy.tsx | packages/frontend-shared/src/components/Checkbox.cy.tsx | import { ref } from 'vue'
import Checkbox from './Checkbox.vue'
describe('<Checkbox />', () => {
it('emits onUpdate:modalValue', () => {
const reference = ref(true)
const updateStub = cy.stub()
cy.mount(<Checkbox label='Welcome guide settings' id="welcome-opt-out" modelValue={reference.value} onUpdate: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/components/highlight.ts | packages/frontend-shared/src/components/highlight.ts | import type { Highlighter, ILanguageRegistration } from 'shiki'
import { getHighlighter, setOnigasmWASM } from 'shiki'
import onigasm from 'onigasm/lib/onigasm.wasm?url'
import shikiCyTheme from '../shiki/themes/cypress.theme.json'
const langJSONFilesArray = import.meta.glob('../shiki/languages/*.tmLanguage.json', { ea... | 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/components/Switch.cy.tsx | packages/frontend-shared/src/components/Switch.cy.tsx | import { ref } from 'vue'
import Switch from './Switch.vue'
describe('<Switch />', () => {
it('playground', { viewportWidth: 80, viewportHeight: 60 }, () => {
const valueRef = ref(false)
cy.mount(() => (
<div class="p-6">
<label id="test-switch">Switch</label>
<Switch
// @ts-... | 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/components/NoResults.cy.tsx | packages/frontend-shared/src/components/NoResults.cy.tsx | import NoResults from './NoResults.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('<NoResults />', () => {
it('renders if there is a search message', () => {
const testSearch = 'test search'
const clearSpy = cy.spy()... | 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/gql-components/RecordPrompt.cy.tsx | packages/frontend-shared/src/gql-components/RecordPrompt.cy.tsx | import RecordPromptVue from './RecordPrompt.vue'
describe('RecordPrompt', () => {
it('renders with no props', () => {
cy.mount(<RecordPromptVue />)
cy.findByDisplayValue('npx cypress run --record --key <record-key>').should('be.visible')
})
it('renders with component testing type', () => {
cy.mount... | 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/gql-components/ExternalLink.cy.tsx | packages/frontend-shared/src/gql-components/ExternalLink.cy.tsx | import ExternalLink from './ExternalLink.vue'
import { ExternalLink_OpenExternalDocument } from '../generated/graphql'
describe('<ExternalLink />', () => {
beforeEach(() => {
const onClickSpy = cy.spy().as('onClickSpy')
cy.mount(() => (
<ExternalLink
href='https://on.cypress.io/ci'
// ... | 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/gql-components/LoginConnectModalsContent.cy.tsx | packages/frontend-shared/src/gql-components/LoginConnectModalsContent.cy.tsx | import { Auth_LoginDocument, LoginConnectModalsContentFragmentDoc } from '../generated/graphql-test'
import LoginConnectModalsContent from './LoginConnectModalsContent.vue'
import { CloudUserStubs } from '@packages/data-context/test/graphql/stubCloudTypes'
import { SelectCloudProjectModal_CreateCloudProjectDocument } f... | 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/gql-components/useClipboard.ts | packages/frontend-shared/src/gql-components/useClipboard.ts | /**
* Using the clipboard API from electron instead of the browser's navigator API,
* we avoid the safety measures from the browser.
* This way, regardless of the browser, we can use and test the clipboard.
*/
import { Clipboard_CopyToClipboardDocument } from '../generated/graphql'
import { gql, useMutation } from ... | 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/gql-components/TestingTypePicker.cy.tsx | packages/frontend-shared/src/gql-components/TestingTypePicker.cy.tsx | import TestingTypePicker from './TestingTypePicker.vue'
import { TestingTypePickerFragmentDoc } from '../generated/graphql-test'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
const { component, e2e, componentDisabled } = defaultMessages.te... | 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/gql-components/useExternalLink.ts | packages/frontend-shared/src/gql-components/useExternalLink.ts | import { ExternalLink_OpenExternalDocument } from '../generated/graphql'
import { gql, useMutation } from '@urql/vue'
import type { MaybeRef } from '@vueuse/core'
import { unref } from 'vue'
gql`
mutation ExternalLink_OpenExternal ($url: String!, $includeGraphqlPort: Boolean) {
openExternal(url: $url, includeGraphql... | 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/gql-components/ChooseExternalEditorModal.cy.tsx | packages/frontend-shared/src/gql-components/ChooseExternalEditorModal.cy.tsx | import ChooseExternalEditorModal from './ChooseExternalEditorModal.vue'
import { ChooseExternalEditorFragmentDoc } from '../generated/graphql-test'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('ChooseExternalEditorModal', () => {... | 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/gql-components/StatusBadge.cy.tsx | packages/frontend-shared/src/gql-components/StatusBadge.cy.tsx | import { ref } from 'vue'
import StatusBadge from './StatusBadge.vue'
import Button from '../components/Button.vue'
describe('<StatusBadge />', () => {
it('renders and toggles', { viewportWidth: 500, viewportHeight: 200 }, () => {
const status = ref(false)
const title = ref('not configured')
function on... | 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/gql-components/HeaderBarContent.cy.tsx | packages/frontend-shared/src/gql-components/HeaderBarContent.cy.tsx | import { HeaderBar_HeaderBarContentFragmentDoc } from '../generated/graphql-test'
import HeaderBarContent from './HeaderBarContent.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import { CloudUserStubs } from '@packages/data-context/tes... | 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/gql-components/CopyButton.cy.tsx | packages/frontend-shared/src/gql-components/CopyButton.cy.tsx | import CopyButton from './CopyButton.vue'
import { Clipboard_CopyToClipboardDocument } from '../generated/graphql'
describe('<CopyButton />', { viewportHeight: 80, viewportWidth: 120 }, () => {
it('copies text to clipboard', () => {
cy.mount(() => (<>
<CopyButton text="Foobar" />
</>))
.get('button... | 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/gql-components/RecordRunModal.cy.tsx | packages/frontend-shared/src/gql-components/RecordRunModal.cy.tsx | import RecordRunModalVue from './RecordRunModal.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import { UsePromptManager_SetProjectPreferencesDocument } from '../generated/graphql-test'
describe('RecordRunModal', () => {
it('renders ... | 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/gql-components/ChooseExternalEditor.cy.tsx | packages/frontend-shared/src/gql-components/ChooseExternalEditor.cy.tsx | import ChooseExternalEditor from './ChooseExternalEditor.vue'
import { ChooseExternalEditorFragmentDoc } from '../generated/graphql-test'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('ChooseExternalEditor', { viewportHeight: 400,... | 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/gql-components/modals/CreateCloudOrgModal.spec.tsx | packages/frontend-shared/src/gql-components/modals/CreateCloudOrgModal.spec.tsx | import { CreateCloudOrgModalFragmentDoc } from '../../generated/graphql-test'
import CreateCloudOrgModal from './CreateCloudOrgModal.vue'
describe('<CreateCloudOrgModal />', () => {
it('should show a normal error', () => {
cy.mountFragment(CreateCloudOrgModalFragmentDoc, {
render (gql) {
return (<... | 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/gql-components/modals/LoginModal.cy.tsx | packages/frontend-shared/src/gql-components/modals/LoginModal.cy.tsx | import { LoginModalFragmentDoc } from '../../generated/graphql-test'
import LoginModal from './LoginModal.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import Tooltip from '../../components/Tooltip.vue'
import { ref } from 'vue'
import... | 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/gql-components/modals/SelectCloudProjectModal.cy.tsx | packages/frontend-shared/src/gql-components/modals/SelectCloudProjectModal.cy.tsx | // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import {
CloudOrganizationConnectionStubs,
CloudUserStubs,
} from '@packages/data-context/test/graphql/stubCloudTypes'
import { SelectCloudProjectModalFragmentDoc } from '../../generated/gra... | 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/gql-components/modals/CloudConnectModals.spec.tsx | packages/frontend-shared/src/gql-components/modals/CloudConnectModals.spec.tsx | // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
import { CloudUserStubs,
CloudOrganizationConnectionStubs,
} from '@packages/data-context/test/graphql/stubCloudTypes'
import { CloudConnectModalsFragmentDoc } from '../../generated/graphql-te... | 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/gql-components/modals/NeedManualUpdateModal.spec.tsx | packages/frontend-shared/src/gql-components/modals/NeedManualUpdateModal.spec.tsx | import { NeedManualUpdateModalFragmentDoc } from '../../generated/graphql-test'
import NeedManualUpdateModal from './NeedManualUpdateModal.vue'
describe('<NeedManualUpdateModal />', () => {
it('should show a normal error', () => {
cy.mountFragment(NeedManualUpdateModalFragmentDoc, {
onResult: (result) => {... | 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/gql-components/topnav/UpdateCypressModal.cy.tsx | packages/frontend-shared/src/gql-components/topnav/UpdateCypressModal.cy.tsx | import UpdateCypressModal from './UpdateCypressModal.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('<UpdateCypressModal />', { viewportWidth: 1000, viewportHeight: 750 }, () => {
const installedVersion = '8.2.0'
const lat... | 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/gql-components/topnav/PromptContent.cy.tsx | packages/frontend-shared/src/gql-components/topnav/PromptContent.cy.tsx | import PromptContent from './PromptContent.vue'
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these
import { defaultMessages } from '@cy/i18n'
describe('<PromptContent />', { viewportWidth: 500, viewportHeight: 800 }, () => {
const { ci1, orchestration1 } = defaultMessages.topNav.docsM... | 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/gql-components/topnav/UserAvatar.cy.tsx | packages/frontend-shared/src/gql-components/topnav/UserAvatar.cy.tsx | import UserAvatar from './UserAvatar.vue'
describe('<UserAvatar />', { viewportWidth: 48, viewportHeight: 48 }, () => {
it('renders when an email address is passed', () => {
cy.mount(() => <UserAvatar email="test@test.test" class="h-[48px] w-[48px]"/>)
validateUserAvatar()
cy.percySnapshot()
})
it('... | 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/gql-components/error/BaseError.cy.tsx | packages/frontend-shared/src/gql-components/error/BaseError.cy.tsx | import { codeFrameColumns } from '@babel/code-frame'
import BaseError from './BaseError.vue'
import { BaseErrorFragmentDoc } from '../../../../launchpad/src/generated/graphql-test'
import dedent from 'dedent'
// Selectors
const headerSelector = 'h1[data-cy=error-header]'
const messageSelector = '[data-testid=error-mes... | 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/gql-components/composables/usePromptManager.ts | packages/frontend-shared/src/gql-components/composables/usePromptManager.ts | import { gql, useMutation } from '@urql/vue'
import { UsePromptManager_SetProjectPreferencesDocument, UsePromptManager_SetGlobalPreferencesDocument } from '../../generated/graphql'
import { CloudStatus, ProjectStatus, useUserProjectStatusStore } from '../../store/user-project-status-store'
import { isAllowedFeature } f... | 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/gql-components/composables/useCohorts.ts | packages/frontend-shared/src/gql-components/composables/useCohorts.ts | import { useMutation, gql } from '@urql/vue'
import { UseCohorts_DetermineCohortDocument } from '../../generated/graphql'
import { ref } from 'vue'
gql`
mutation UseCohorts_DetermineCohort ($name: String!, $cohorts: [String!]!) {
determineCohort(cohortConfig: { name: $name, cohorts: $cohorts } ) {
__typename
... | 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/isRunMode.ts | packages/frontend-shared/src/utils/isRunMode.ts | import { CY_IN_CY_SIMULATE_RUN_MODE } from '@packages/types'
export const isRunMode = window.location.href.includes(CY_IN_CY_SIMULATE_RUN_MODE) || (window.__CYPRESS_MODE__ === 'run' && window.top === window)
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.