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/config/test/__babel_fixtures__/adding-component/import-default-ts/output.ts
packages/config/test/__babel_fixtures__/adding-component/import-default-ts/output.ts
import cy from "cypress"; export default cy.defineConfig({ e2e: {}, component: { devServer: { framework: "react", bundler: "webpack", }, }, });
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/__babel_fixtures__/adding-component/assigned-defineConfig-ts/code.ts
packages/config/test/__babel_fixtures__/adding-component/assigned-defineConfig-ts/code.ts
import { defineConfig } from 'cypress' const myConfig = defineConfig({ e2e: {} }) export default myConfig
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/__babel_fixtures__/adding-component/assigned-defineConfig-ts/output.ts
packages/config/test/__babel_fixtures__/adding-component/assigned-defineConfig-ts/output.ts
import { defineConfig } from "cypress"; const myConfig = defineConfig({ e2e: {}, component: { devServer: { framework: "react", bundler: "webpack", }, }, }); export default myConfig;
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/project/index.spec.ts
packages/config/test/project/index.spec.ts
import { vi, describe, it, expect } from 'vitest' import errors from '@packages/errors' import { updateWithPluginValues } from '../../src/project' vi.mock('@packages/errors', async (importActual) => { const actual = await importActual() return { default: { // @ts-expect-error ...actual.default, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/project/utils.spec.ts
packages/config/test/project/utils.spec.ts
import { vi, describe, it, beforeAll, beforeEach, expect } from 'vitest' import _ from 'lodash' import stripAnsi from 'strip-ansi' import Debug from 'debug' import os from 'node:os' import errors from '@packages/errors' import Fixtures from '@tooling/system-tests' import { checkIfResolveChangedRootFolder, correct...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/__fixtures__/invalid.config.ts
packages/config/test/__fixtures__/invalid.config.ts
const x = {}
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/__fixtures__/empty.config.ts
packages/config/test/__fixtures__/empty.config.ts
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/config/test/__fixtures__/has-e2e.config.ts
packages/config/test/__fixtures__/has-e2e.config.ts
export default { e2e: {} }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/vitest.config.ts
packages/network/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/network/test/support/servers.ts
packages/network/test/support/servers.ts
import { promisify } from 'util' import express from 'express' import http from 'http' import https from 'https' import { CA } from '@packages/https-proxy' import { SocketIOServer } from '@packages/socket' import { allowDestroy } from '../../lib/allow-destroy' export interface AsyncServer { closeAsync: () => Promise...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/test/integration/connect.spec.ts
packages/network/test/integration/connect.spec.ts
import { describe, it, expect } from 'vitest' import _ from 'lodash' import net, { AddressInfo } from 'net' import * as connect from '../../lib/connect' describe('lib/connect', function () { describe('.getAddress', function () { it('resolves localhost on 127.0.0.1 immediately', { // TODO: fix flaky test ht...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/test/unit/blocked.spec.ts
packages/network/test/unit/blocked.spec.ts
import { describe, it, expect } from 'vitest' import { blocked } from '../../lib' const hosts = [ '*.google.com', 'shop.apple.com', 'localhost:6666', 'adwords.com', '*yahoo.com', ] const matchesStr = function (url: string, host: string, val: boolean) { const m = blocked.matches(url, host) expect(!!m, `...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/test/unit/connect.spec.ts
packages/network/test/unit/connect.spec.ts
import { describe, it, expect, beforeEach, vi } from 'vitest' import { connect } from '../../lib' import net from 'net' import type { RetryingOptions } from '../../lib/connect' describe('lib/connect', () => { beforeEach(() => { vi.spyOn(net, 'connect').mockRestore() }) describe('.byPortAndAddress', () => {...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/test/unit/client_certificates.spec.ts
packages/network/test/unit/client_certificates.spec.ts
import { describe, it, expect, beforeAll, afterAll } from 'vitest' import { ParsedUrl, UrlMatcher, UrlClientCertificates, ClientCertificateStore, clientCertificateStoreSingleton, ClientCertificates, loadClientCertificateConfig } from '../../lib/client-certificates' // import { clientCertificateStore } from '../../lib/a...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/test/unit/agent.spec.ts
packages/network/test/unit/agent.spec.ts
import { describe, it, expect, beforeEach, afterEach, beforeAll, afterAll, vi } from 'vitest' import { promisify } from 'util' import http from 'http' import https from 'https' import net, { type ListenOptions } from 'net' import tls from 'tls' import url from 'url' import DebuggingProxy from '@cypress/debugging-proxy...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/ca.ts
packages/network/lib/ca.ts
import { promises as fs } from 'fs' import tls from 'tls' export type CaOptions = { ca?: string[] } const getNpmConfigCAFileValue = async (): Promise<string | undefined> => { if (process.env.npm_config_cafile) { try { const ca = await fs.readFile(process.env.npm_config_cafile, 'utf8') return ca ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/blocked.ts
packages/network/lib/blocked.ts
import _ from 'lodash' import minimatch from 'minimatch' import { stripProtocolAndDefaultPorts } from '@packages/network-tools' export function matches (urlToCheck: string, blockHosts: string[] | string) { // normalize into flat array const blockHostsNormalized: string[] = ([] as string[]).concat(blockHosts) co...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/connect.ts
packages/network/lib/connect.ts
import { promisify } from 'util' import debugModule from 'debug' import dns from 'dns' import _ from 'lodash' import net from 'net' import tls from 'tls' import os from 'os' const debug = debugModule('cypress:network:connect') export function byPortAndAddress (port: number, address: net.Address) { // https://nodejs...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/client-certificates.ts
packages/network/lib/client-certificates.ts
import { URL, Url } from 'url' import debugModule from 'debug' import minimatch from 'minimatch' import fs from 'fs-extra' import { pki, asn1, pkcs12, util } from 'node-forge' const debug = debugModule('cypress:network:client-certificates') export class ParsedUrl { constructor (url: string) { if (url === '*' ||...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/allow-destroy.ts
packages/network/lib/allow-destroy.ts
import type net from 'net' /** * `allowDestroy` adds a `destroy` method to a `net.Server`. `destroy(cb)` * will kill all open connections and call `cb` when the server is closed. * * Note: `server-destroy` NPM package cannot be used - it does not track * `secureConnection` events. */ export function allowDestroy...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/http-utils.ts
packages/network/lib/http-utils.ts
import _ from 'lodash' import type { IncomingMessage } from 'http' // https://github.com/cypress-io/cypress/issues/4298 // https://tools.ietf.org/html/rfc7230#section-3.3.3 // HEAD, 1xx, 204, and 304 responses should never contain anything after headers const NO_BODY_STATUS_CODES = [204, 304] export function response...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/index.ts
packages/network/lib/index.ts
import agent, { strictAgent } from './agent' import * as blocked from './blocked' import * as connect from './connect' import * as httpUtils from './http-utils' import * as clientCertificates from './client-certificates' export { agent, blocked, connect, httpUtils, clientCertificates, strictAgent, } expor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/agent.ts
packages/network/lib/agent.ts
import debugModule from 'debug' import http from 'http' import https from 'https' import _ from 'lodash' import net from 'net' import { getProxyForUrl } from 'proxy-from-env' import url from 'url' import { createRetryingSocket, getAddress } from './connect' import { lenientOptions } from './http-utils' import { clientC...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/network/lib/concat-stream.ts
packages/network/lib/concat-stream.ts
import _ from 'lodash' import _concatStream from 'concat-stream' type Callback = (buf: Buffer) => void type ConcatOpts = { encoding?: string } /** * Wrapper for `concat-stream` to handle empty streams. */ export const concatStream: typeof _concatStream = function (opts: Callback | ConcatOpts, cb?: Callback) { l...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/vitest.config.ts
packages/socket/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/socket/test/socket.spec.ts
packages/socket/test/socket.spec.ts
import { describe, it, expect } from 'vitest' import fs from 'fs' import path from 'path' import parser from 'socket.io-parser' import { hasBinary } from 'socket.io-parser/dist/is-binary' import pkg from '../package.json' import * as lib from '../lib/node' import * as browserLib from '../lib/client' import resolvePkg f...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/test/utils.spec.ts
packages/socket/test/utils.spec.ts
import { describe, it, expect } from 'vitest' import { promisify } from 'util' import fs from 'fs' import path from 'path' import { encode, decode } from '../lib/utils' describe('utils', () => { it('encodes and decodes a message with simple data', async () => { const message = [{ type: 'test', data: { foo: 'bar'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/utils.ts
packages/socket/lib/utils.ts
import * as socketIoParser from 'socket.io-parser' // @ts-ignore import * as engineParser from 'engine.io-parser' export const encode = (data: any, namespace: string): Promise<string> => { return new Promise((resolve, reject) => { try { const encoder = new socketIoParser.Encoder() const socketIoEncod...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/node/types.ts
packages/socket/lib/node/types.ts
import type Emitter from 'component-emitter' export type SocketShape = Emitter
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/node/index.ts
packages/socket/lib/node/index.ts
export { SocketIOServer, getPathToClientSource, getClientVersion } from './socket' export type { ServerOptions, Socket, Namespace as SocketIONamespace } from 'socket.io' export { CDPSocketServer } from './cdp-socket'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/node/socket.ts
packages/socket/lib/node/socket.ts
import buffer from 'buffer' import type http from 'http' import { Server as SocketIOBaseServer, ServerOptions } from 'socket.io' // TODO: this will need to be updated to use an ESM version of the package const { version } = require('socket.io-client/package.json') const clientSource = require.resolve('socket.io-client...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/node/cdp-socket.ts
packages/socket/lib/node/cdp-socket.ts
import type { CDPClient } from '@packages/types/src/protocol' import type Protocol from 'devtools-protocol/types/protocol.d' import { EventEmitter } from 'stream' import { randomUUID } from 'crypto' import { decode, encode } from '../utils' import Debug from 'debug' const debugVerbose = Debug('cypress-verbose:server:s...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/client/browser.ts
packages/socket/lib/client/browser.ts
import io, { ManagerOptions, SocketOptions } from 'socket.io-client' import { CDPBrowserSocket } from './cdp-browser' import type { SocketShape } from './cdp-browser' declare global { interface Window { cypressSockets: {[key: string]: CDPBrowserSocket} } } let chromium = false export function client (uri: st...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/client/cdp-browser.ts
packages/socket/lib/client/cdp-browser.ts
/// <reference lib="dom" /> import { v4 as uuidv4 } from 'uuid' import { decode, encode } from '../utils' import Emitter from 'component-emitter' export type SocketShape = Emitter type CDPSocketNamespaceKey = `cypressSocket-${string}` type CDPSendToServerNamespaceKey = `cypressSendToServer-${string}` declare global ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/socket/lib/client/index.ts
packages/socket/lib/client/index.ts
export { client, createWebsocket } from './browser' export { CDPBrowserSocket } from './cdp-browser' export type { Socket } from 'socket.io-client' export type { SocketShape } from './cdp-browser'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/webpack.config.ts
packages/reporter/webpack.config.ts
import { getCommonConfig, HtmlWebpackPlugin, getCleanWebpackPlugin } from '@packages/web-config/webpack.config.base' import path from 'path' import type { Configuration } from 'webpack' const CleanWebpackPlugin = getCleanWebpackPlugin() // @ts-ignore const config: Configuration = { ...getCommonConfig(), entry: { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/cypress.config.ts
packages/reporter/cypress.config.ts
import { defineConfig } from 'cypress' import webpackConfig from './webpack.config' import WP from '../../npm/webpack-preprocessor' export default defineConfig({ projectId: 'ypt4pf', reporter: '../../node_modules/cypress-multi-reporters/index.js', reporterOptions: { configFile: '../../mocha-reporter-config....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/index.d.ts
packages/reporter/index.d.ts
/// <reference path="../../cli/types/cy-blob-util.d.ts" /> /// <reference path="../../cli/types/cy-bluebird.d.ts" /> /// <reference path="../../cli/types/cy-minimatch.d.ts" /> /// <reference path="../../cli/types/cypress.d.ts" /> /// <reference path="../../cli/types/cypress-global-vars.d.ts" /> /// <reference path=".....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/index.ts
packages/reporter/index.ts
export * from './src/runnables/runnables-store'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/main.tsx
packages/reporter/src/main.tsx
/* global JSX */ import { action } from 'mobx' import { observer } from 'mobx-react' import cs from 'classnames' import React, { useEffect, useRef, useState } from 'react' import { createRoot } from 'react-dom/client' import type { RunnablesErrorModel } from './runnables/runnable-error' import appStateDefault, { AppSt...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/main-runner.scss.d.ts
packages/reporter/src/main-runner.scss.d.ts
// This file is automatically generated. // Please do not change this file! interface CssExports { } export const cssExports: CssExports export default cssExports
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/index.ts
packages/reporter/src/index.ts
import './main.scss' import './main'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/main.scss.d.ts
packages/reporter/src/main.scss.d.ts
// This file is automatically generated. // Please do not change this file! interface CssExports { } export const cssExports: CssExports; export default cssExports;
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/collapsible/collapsible.tsx
packages/reporter/src/collapsible/collapsible.tsx
import cs from 'classnames' import React, { CSSProperties, MouseEvent, ReactNode, RefObject, useCallback, useEffect, useRef, useState } from 'react' import { onEnterOrSpace } from '../lib/util' import DocumentBlankIcon from '@packages/frontend-shared/src/assets/icons/document-blank_x16.svg' import { IconChevronDownSmal...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/studio/StudioTest.tsx
packages/reporter/src/studio/StudioTest.tsx
import React, { useCallback, useEffect, useMemo, useRef } from 'react' import { observer } from 'mobx-react' import { RunnablesStore } from '../runnables/runnables-store' import { Duration } from '../duration/duration' import Controls from '../header/controls' import { AppState } from '../lib/app-state' import Tooltip ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/studio/StudioTest.cy.tsx
packages/reporter/src/studio/StudioTest.cy.tsx
import React from 'react' import { StudioTest } from './StudioTest' import { AppState } from '../lib/app-state' import { RunnablesStore } from '../runnables/runnables-store' import { StatsStore } from '../header/stats-store' import Test from '../test/test-model' import scroller from '../lib/scroller' import events from...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/attempts/attempts.tsx
packages/reporter/src/attempts/attempts.tsx
import cs from 'classnames' import { observer } from 'mobx-react' import React, { useEffect, useState } from 'react' import type { TestState } from '@packages/types' import Agents from '../agents/agents' import Collapsible from '../collapsible/collapsible' import Hooks from '../hooks/hooks' import Routes from '../rout...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/attempts/attempt-model.ts
packages/reporter/src/attempts/attempt-model.ts
import _ from 'lodash' import { action, computed, observable, makeObservable } from 'mobx' import Agent, { AgentProps } from '../agents/agent-model' import Command, { CommandProps } from '../commands/command-model' import Err from '../errors/err-model' import Route, { RouteProps } from '../routes/route-model' import t...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/errors/test-error.tsx
packages/reporter/src/errors/test-error.tsx
import _ from 'lodash' import React, { MouseEvent, useCallback } from 'react' import cs from 'classnames' import { observer } from 'mobx-react' import Markdown from 'markdown-it' import Collapsible from '../collapsible/collapsible' import ErrorCodeFrame from '../errors/error-code-frame' import ErrorStack from '../erro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/errors/err-model.ts
packages/reporter/src/errors/err-model.ts
/* eslint-disable padding-line-between-statements */ import _ from 'lodash' import { computed, observable, makeObservable } from 'mobx' import type { FileDetails } from '@packages/types' export interface ParsedStackMessageLine { message: string whitespace: string } export interface ParsedStackFileLine extends Fi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/errors/error-code-frame.tsx
packages/reporter/src/errors/error-code-frame.tsx
import React, { useEffect, useRef } from 'react' import { observer } from 'mobx-react' import Prism from 'prismjs' import type { CodeFrame } from './err-model' import FileNameOpener from '../lib/file-name-opener' interface Props { codeFrame: CodeFrame } const ErrorCodeFrame: React.FC<Props> = observer(({ codeFrame...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/errors/error-stack.tsx
packages/reporter/src/errors/error-stack.tsx
import _ from 'lodash' import { observer } from 'mobx-react' import React, { ReactElement } from 'react' import FileNameOpener from '../lib/file-name-opener' import type Err from './err-model' import type { ParsedStackFileLine, ParsedStackMessageLine } from './err-model' const cypressLineRegex = /(cypress:\/\/|cypres...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/agents/agent-model.ts
packages/reporter/src/agents/agent-model.ts
import { observable, makeObservable } from 'mobx' import Instrument, { InstrumentProps } from '../instruments/instrument-model' export interface AgentProps extends InstrumentProps { callCount: number functionName: string } export default class Agent extends Instrument { callCount: number = 0 functionName: str...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/agents/agents.tsx
packages/reporter/src/agents/agents.tsx
import cs from 'classnames' import _ from 'lodash' import { observer } from 'mobx-react' import React from 'react' import Collapsible from '../collapsible/collapsible' import type AgentModel from './agent-model' import type { Alias } from '../instruments/instrument-model' export interface AgentProps { model: AgentM...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/commands/command-model.ts
packages/reporter/src/commands/command-model.ts
import _ from 'lodash' import { action, computed, observable, makeObservable } from 'mobx' import Err, { ErrProps } from '../errors/err-model' import Instrument, { InstrumentProps } from '../instruments/instrument-model' import type { TimeoutID } from '../lib/types' import type { SessionProps } from '../sessions/sessi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/commands/command.cy.tsx
packages/reporter/src/commands/command.cy.tsx
import React from 'react' import Command from './command' import CommandModel from './command-model' import type { SessionStatus } from '../sessions/utils' import type { TestState } from '@packages/types' describe('commands', () => { describe('test states', () => { it('warned command', () => { cy.mount( ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/commands/command.tsx
packages/reporter/src/commands/command.tsx
import _ from 'lodash' import cs from 'classnames' import Markdown from 'markdown-it' import { observer } from 'mobx-react' import React, { useState, useEffect } from 'react' import Tooltip from '@cypress/react-tooltip' import Button from '@cypress-design/react-button' import appState from '../lib/app-state' import ev...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/instruments/instrument-model.ts
packages/reporter/src/instruments/instrument-model.ts
import { observable, makeObservable } from 'mobx' import type { Instrument, TestState } from '@packages/types' export interface AliasObject { name: string cardinal?: number ordinal?: string } export type Alias = string | Array<string> | null | AliasObject | Array<AliasObject> export type DefaultCollapsedState ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/hooks/hooks.cy.tsx
packages/reporter/src/hooks/hooks.cy.tsx
import React from 'react' import { Hook } from './hooks' import '../main.scss' describe('hooks/hooks.tsx', () => { it('should mount', () => { const model = { failed: false, hookName: 'TEST BODY', } cy.mount(<div className="runnable suite"> <div className="hooks-container"> <Ho...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/hooks/hook-model.ts
packages/reporter/src/hooks/hook-model.ts
import _ from 'lodash' import { observable, computed, makeObservable } from 'mobx' import type { FileDetails } from '@packages/types' import type { Alias } from '../instruments/instrument-model' import type Err from '../errors/err-model' import type CommandModel from '../commands/command-model' export type HookName =...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/hooks/hooks.tsx
packages/reporter/src/hooks/hooks.tsx
import cs from 'classnames' import _ from 'lodash' import { observer } from 'mobx-react' import React from 'react' import appState, { AppState } from '../lib/app-state' import Command from '../commands/command' import Collapsible from '../collapsible/collapsible' import type HookModel from './hook-model' import type { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/test/test.tsx
packages/reporter/src/test/test.tsx
import { observer } from 'mobx-react' import React, { MouseEvent, useCallback } from 'react' import { IconCypressStudio } from '@cypress-design/react-icon' import events, { Events } from '../lib/events' import appState, { AppState } from '../lib/app-state' import Collapsible from '../collapsible/collapsible' import Te...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/test/test-model.ts
packages/reporter/src/test/test-model.ts
import _ from 'lodash' import { action, computed, observable, makeObservable } from 'mobx' import { FileDetails, TestState } from '@packages/types' import Attempt from '../attempts/attempt-model' import Err, { ErrProps } from '../errors/err-model' import type { HookProps } from '../hooks/hook-model' import Runnable, {...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/test/test.cy.tsx
packages/reporter/src/test/test.cy.tsx
import React from 'react' import Test from './test' describe('test/test.tsx', () => { it('should mount', () => { const model = { isOpen: false, level: 0, state: 'passed', title: 'foobar', attempts: [], setIsOpen: (isOpen) => model.isOpen = isOpen, onOpenStateChangeReques...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/routes/routes.tsx
packages/reporter/src/routes/routes.tsx
import cs from 'classnames' import _ from 'lodash' import { observer } from 'mobx-react' import React from 'react' // @ts-ignore import Tooltip from '@cypress/react-tooltip' import Collapsible from '../collapsible/collapsible' import Tag from '../lib/tag' import type RouteModel from './route-model' export interface R...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/routes/route-model.ts
packages/reporter/src/routes/route-model.ts
import { observable, makeObservable } from 'mobx' import Instrument, { InstrumentProps } from '../instruments/instrument-model' export interface RouteProps extends InstrumentProps { isStubbed: boolean method: string numResponses: number url: string } export default class Route extends Instrument { isStubbed...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/components/LaunchStudioIcon.tsx
packages/reporter/src/components/LaunchStudioIcon.tsx
import React, { MouseEvent } from 'react' import Tooltip from '@cypress/react-tooltip' import { IconChevronRightMedium } from '@cypress-design/react-icon' interface LaunchStudioIconProps { content: React.ReactNode onClick: (e: MouseEvent) => void } export const LaunchStudioIcon: React.FC<LaunchStudioIconProps> =...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnable-and-suite.tsx
packages/reporter/src/runnables/runnable-and-suite.tsx
import cs from 'classnames' import _ from 'lodash' import { observer } from 'mobx-react' import React, { useCallback, useMemo } from 'react' import appState from '../lib/app-state' import events, { Events } from '../lib/events' import Test from '../test/test' import Collapsible, { CollapsibleHeaderComponentProps } fro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnable-model.ts
packages/reporter/src/runnables/runnable-model.ts
import { observable, makeObservable } from 'mobx' import type { HookProps } from '../hooks/hook-model' export interface RunnableProps { id: string title?: string hooks: Array<HookProps> parentTitle?: string } export default class Runnable { id: string title?: string level: number hooks: Array<HookProp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnable-popover-options.tsx
packages/reporter/src/runnables/runnable-popover-options.tsx
import { action } from 'mobx' import { observer } from 'mobx-react' import React, { useState, useRef, useEffect } from 'react' import { createPortal } from 'react-dom' import cs from 'classnames' import Tooltip from '@cypress/react-tooltip' import Button from '@cypress-design/react-button' import { IconActionAddMedium...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnable-error.tsx
packages/reporter/src/runnables/runnable-error.tsx
import { observer } from 'mobx-react' import Markdown from 'markdown-it' import React from 'react' import QuestionMarkIcon from '@packages/frontend-shared/src/assets/icons/action-question-mark-outline_x16.svg' import WarningIcon from '@packages/frontend-shared/src/assets/icons/warning_x16.svg' const md = new Markdown...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnables.tsx
packages/reporter/src/runnables/runnables.tsx
import _ from 'lodash' import { action } from 'mobx' import { observer } from 'mobx-react' import React, { MouseEvent, useCallback, useEffect, useRef } from 'react' import events, { Events } from '../lib/events' import { RunnablesError, RunnablesErrorModel } from './runnable-error' import Runnable, { shouldShowConnect...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnable-header.tsx
packages/reporter/src/runnables/runnable-header.tsx
import { observer } from 'mobx-react' import React, { ReactElement } from 'react' import type { StatsStore } from '../header/stats-store' import { RunnablesStore } from './runnables-store' import { DebugDismiss } from '../header/DebugDismiss' import { Duration } from '../duration/duration' import { SpecFileName } from...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/runnables-store.ts
packages/reporter/src/runnables/runnables-store.ts
import type { TestFilter } from '@packages/types' import _ from 'lodash' import { action, observable, makeObservable } from 'mobx' import type AgentModel from '../agents/agent-model' import type { AgentProps } from '../agents/agent-model' import type CommandModel from '../commands/command-model' import type { CommandPr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/runnables/suite-model.ts
packages/reporter/src/runnables/suite-model.ts
import _ from 'lodash' import { computed, observable, makeObservable } from 'mobx' import Runnable, { RunnableProps } from './runnable-model' import type TestModel from '../test/test-model' import type { TestProps } from '../test/test-model' import type { TestState } from '@packages/types' export interface SuiteProps ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/duration/duration.tsx
packages/reporter/src/duration/duration.tsx
import React from 'react' import { formatDuration } from '../lib/util' export const Duration = ({ duration }: { duration: number }) => { return Boolean(duration) && ( <span className='duration' data-cy="spec-duration">{formatDuration(duration)}</span> ) }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/sessions/utils.ts
packages/reporter/src/sessions/utils.ts
function determineTagType (state: string) { switch (state) { case 'failed': return 'failed-status' case 'warned': return 'warned-status' default: return 'successful-status' } } export type SessionStatus = 'creating' | 'created' | 'restoring' |'restored' | 'recreating' | 'recreated' | ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/sessions/sessions.tsx
packages/reporter/src/sessions/sessions.tsx
import cs from 'classnames' import React from 'react' import { observer } from 'mobx-react' import GlobeIcon from '@packages/frontend-shared/src/assets/icons/globe_x12.svg' import type SessionsModel from './sessions-model' import events from '../lib/events' import Collapsible from '../collapsible/collapsible' import T...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/sessions/sessions-model.ts
packages/reporter/src/sessions/sessions-model.ts
import { observable, makeObservable } from 'mobx' import Instrument, { InstrumentProps } from '../instruments/instrument-model' import { determineTagType } from './utils' import type { SessionStatus } from './utils' export interface SessionProps extends InstrumentProps { name: string testId: string testCurrentRe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/sessions/sessions.cy.tsx
packages/reporter/src/sessions/sessions.cy.tsx
import React from 'react' import Sessions from './sessions' import SessionsModel from './sessions-model' import events from '../lib/events' describe('sessions instrument panel', { viewportWidth: 400 }, () => { it('renders null when no sessions have been added', () => { cy.mount(<Sessions model={[]}/>) cy.ge...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/flash-on-click.tsx
packages/reporter/src/lib/flash-on-click.tsx
import { action } from 'mobx' import { observer } from 'mobx-react' import React, { Children, cloneElement, MouseEvent, ReactElement, ReactNode, useCallback, useState } from 'react' // @ts-ignore import Tooltip from '@cypress/react-tooltip' interface Props { message: string onClick: ((e: MouseEvent) => void) sho...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/app-state.ts
packages/reporter/src/lib/app-state.ts
import _ from 'lodash' import { observable, makeObservable } from 'mobx' interface DefaultAppState { isPaused: boolean isRunning: boolean nextCommandName: string | null | undefined pinnedSnapshotId: number | string | null studioActive: boolean studioSingleTestActive: boolean hasBeenPaused: boolean } // ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/useScrollIntoView.ts
packages/reporter/src/lib/useScrollIntoView.ts
import { useCallback, useEffect, useRef, useState } from 'react' import { AppState } from './app-state' import scroller from './scroller' interface UseScrollIntoViewOptions { appState: AppState testState?: string isStudioActive?: boolean } export const useScrollIntoView = ({ appState, testState, isStudioActive ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/util.ts
packages/reporter/src/lib/util.ts
import type { KeyboardEvent } from 'react' // Returns a keyboard handler that invokes the provided function when either enter or space is pressed const onEnterOrSpace = (f: (() => void)) => { return (e: KeyboardEvent) => { if (e.key === ' ' || e.key === 'Enter') { f() } } } const formatDuration = (d...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/tag.tsx
packages/reporter/src/lib/tag.tsx
import cs from 'classnames' import React from 'react' import Tooltip from '@cypress/react-tooltip' export interface Props { type?: 'agent' | 'count' | 'dom' | 'failed-status' | 'primitive' | 'route' | 'successful-status' content: React.ReactNode | string count?: number tooltipMessage?: React.ReactNode | string...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/useScrollIntoView.cy.tsx
packages/reporter/src/lib/useScrollIntoView.cy.tsx
import React from 'react' import { useScrollIntoView } from './useScrollIntoView' import { AppState } from './app-state' import scroller from './scroller' // Test component to render the hook const TestComponent = ({ appState, testState, isStudioActive }: { appState: AppState testState?: string isStudioActive?: ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/selfHealedBadge.tsx
packages/reporter/src/lib/selfHealedBadge.tsx
import React from 'react' import { IconGeneralSparkleSingleSmall } from '@cypress-design/react-icon' import cs from 'classnames' export const SelfHealedBadge = ({ source }: { source: 'command' | 'test' }) => { return ( <div className={cs('command-self-healed-badge', { 'command-self-healed-badge-command': source ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/switch.tsx
packages/reporter/src/lib/switch.tsx
import { observer } from 'mobx-react' import React, { useCallback } from 'react' interface Props { value: boolean size?: 'sm' | 'md' | 'lg' | 'xl' 'data-cy'?: string onUpdate: (e: MouseEvent) => void } const Switch: React.FC<Props> = observer(({ value, 'data-cy': dataCy, size = 'lg', onUpdate }) => { const ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/file-name-opener.tsx
packages/reporter/src/lib/file-name-opener.tsx
import { observer } from 'mobx-react' import React from 'react' import type { FileDetails } from '@packages/types' import Tooltip from '@cypress/react-tooltip' import TextIcon from '@packages/frontend-shared/src/assets/icons/document-text_x16.svg' import OpenFileInIDE from './open-file-in-ide' interface Props { fil...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/open-file-in-ide.tsx
packages/reporter/src/lib/open-file-in-ide.tsx
import { observer } from 'mobx-react' import React from 'react' import type { FileDetails } from '@packages/types' import events from './events' interface Props { fileDetails: FileDetails className?: string children?: React.ReactNode } // Catches click events that bubble from children and emits open file events...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/tag.cy.tsx
packages/reporter/src/lib/tag.cy.tsx
import React from 'react' import Tag from './tag' describe('Tag', () => { const aliases = [ 'route', 'agent', 'primitive', 'dom', ] const statuses = [ 'successful-status', 'warned-status', 'failed-status', ] const misc = [ 'count', ] const MockCommandContainer = ({ chil...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/types.ts
packages/reporter/src/lib/types.ts
// These 2 types are defined because TypeScript imports // the return types of setTimeout and setInterval from NodeJS by default. // You can solve the problem by adding window in front of // these functions like window.setTimeout() // Unfortunately, this makes mocha tests fail. // That's why these types are created. ex...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/state-icon.tsx
packages/reporter/src/lib/state-icon.tsx
import { observer } from 'mobx-react' import React from 'react' import type { TestState } from '@packages/types' import { IconStatusFailedSimple, IconStatusPassedSimple, IconStatusQueuedOutline, IconStatusQueuedSimple, IconStatusRunningOutline, IconStatusRunningSimple, IconStatusSkippedOutline, IconStatusSkippedSimple...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/shortcuts.ts
packages/reporter/src/lib/shortcuts.ts
// @ts-ignore import $dom from '@packages/driver/src/dom' import events from './events' import appState from './app-state' import { action } from 'mobx' class Shortcuts { start () { document.addEventListener('keydown', this._handleKeyDownEvent) } stop () { document.removeEventListener('keydown', this._h...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/scroller.ts
packages/reporter/src/lib/scroller.ts
/** container.clientHeight: - container visible area height ("viewport") - includes padding, but not margin or border container.scrollTop: - container scroll position: container.scrollHeight: - total container height (visible + not visible) element.clientHeight: - element height - includes padding, but not ma...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/lib/events.ts
packages/reporter/src/lib/events.ts
import { EventEmitter } from 'events' import { action } from 'mobx' import appState, { AppState } from './app-state' import runnablesStore, { RunnablesStore, LogProps, RootRunnable } from '../runnables/runnables-store' import statsStore, { StatsStore } from '../header/stats-store' import scroller, { Scroller } from './...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/header/CreateNewTestButton.tsx
packages/reporter/src/header/CreateNewTestButton.tsx
import Button from '@cypress-design/react-button' import { IconActionAddMedium } from '@cypress-design/react-icon' import React, { MouseEvent, useCallback } from 'react' import events from '../lib/events' import cs from 'classnames' export const CreateNewTestButton = ({ suiteId, dataCy }: { suiteId: string, dataCy?: s...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/header/OpenFileInIDEButton.tsx
packages/reporter/src/header/OpenFileInIDEButton.tsx
import Button from '@cypress-design/react-button' import React from 'react' import events from '../lib/events' import { IconWindowCodeEditor } from '@cypress-design/react-icon' import { FileDetails } from '@packages/types' import cx from 'classnames' interface Props { fileDetails: FileDetails className?: string } ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/header/controls.tsx
packages/reporter/src/header/controls.tsx
import { observer } from 'mobx-react' import React from 'react' import Button from '@cypress-design/react-button' // @ts-ignore import Tooltip from '@cypress/react-tooltip' import defaultEvents, { Events } from '../lib/events' import type { AppState } from '../lib/app-state' import { IconActionNext, IconActionPlayLar...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/reporter/src/header/DebugDismiss.tsx
packages/reporter/src/header/DebugDismiss.tsx
import React from 'react' import DebuggerIcon from '@packages/frontend-shared/src/assets/icons/debugger_x16.svg' import DeleteIcon from '@packages/frontend-shared/src/assets/icons/status-failed_x12.svg' import events from '../lib/events' export const DebugDismiss = (props: { matched: number, total: number }) => { re...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false