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/system-tests/project-fixtures/runner-specs/cypress/e2e/errors/typescript.cy.ts | system-tests/project-fixtures/runner-specs/cypress/e2e/errors/typescript.cy.ts | // simple example of typescript types
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type Foo = {
something: string
}
describe('typescript', { defaultCommandTimeout: 0 }, () => {
it('assertion failure', () => {
expect('actual').to.equal('expected')
})
it('exception', () => {
// @ts-igno... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/next/cypress/support/component.ts | system-tests/project-fixtures/next/cypress/support/component.ts | // Importing global styles fails with Next.js due to restrictions on style imports.
// We modify the Next Webpack config to allow importing global styles.
import '../../styles/globals.css'
import '../../styles/Home.module.css'
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/simple_passing/src/foo.ts | system-tests/project-fixtures/simple_passing/src/foo.ts | export const numberOne = 1
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/src/mount.cy.ts | system-tests/project-fixtures/svelte/src/mount.cy.ts | import Counter from './lib/Counter.svelte'
import CounterProp from './lib/CounterProp.svelte'
import Context from './lib/Context.svelte'
import Store from './lib/Store.svelte'
import { messageStore } from './lib/store'
describe('Svelte mount', () => {
it('mounts', () => {
cy.mount(Counter)
cy.contains('butto... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/src/App.cy.ts | system-tests/project-fixtures/svelte/src/App.cy.ts | import App from './App.svelte'
it('should render with style', () => {
cy.mount(App, {
// logging due to @packages/app/reporter-ct-mount-hover.cy.ts tests to test the mount log
log: true,
})
cy.contains('Hello World!')
// Verify global styles
cy.get('.very-red').should('have.css', 'color', 'rgb(255, ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/src/main.ts | system-tests/project-fixtures/svelte/src/main.ts | import { mount } from 'svelte'
import './app.css'
import App from './App.svelte'
const app = mount(App, {
target: document.getElementById('app')!,
})
export default app
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/src/vite-env.d.ts | system-tests/project-fixtures/svelte/src/vite-env.d.ts | /// <reference types="svelte" />
/// <reference types="vite/client" />
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/src/lib/errors.cy.ts | system-tests/project-fixtures/svelte/src/lib/errors.cy.ts | import Errors from './Errors.svelte'
describe('Errors', () => {
it('error on mount', () => {
cy.mount(Errors, { props: { throwError: true } })
})
it('sync error', () => {
cy.mount(Errors)
cy.get('#sync-error').click()
})
it('async error', () => {
cy.mount(Errors)
cy.get('#async-error').... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/src/lib/store.ts | system-tests/project-fixtures/svelte/src/lib/store.ts | import { writable } from 'svelte/store'
export const messageStore = writable('Hello World!')
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/svelte/cypress/support/component.ts | system-tests/project-fixtures/svelte/cypress/support/component.ts | import { mount } from 'cypress/svelte'
import '../../src/app.css'
// Augment the Cypress namespace to include type definitions for
// your custom command.
// Alternatively, can be defined in cypress/support/component.d.ts
// with a <reference path="./component" /> at the top of your spec.
declare global {
namespace ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite-port.config.ts | system-tests/project-fixtures/react/cypress-vite-port.config.ts | import viteConfig from './cypress-vite.config'
const port = 9999
viteConfig.port = port
viteConfig.env = {
PORT_CHECK: port,
}
export default viteConfig
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-webpack-dev-server-async-config.config.ts | system-tests/project-fixtures/react/cypress-webpack-dev-server-async-config.config.ts | import { defineConfig } from 'cypress'
import * as path from 'path'
import * as fs from 'fs'
export default defineConfig({
component: {
devServer: {
framework: 'react',
bundler: 'webpack',
webpackConfig: async (baseConfig: any) => {
console.log(baseConfig)
fs.writeFileSync(path.... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-webpack-dev-server-function.config.ts | system-tests/project-fixtures/react/cypress-webpack-dev-server-function.config.ts | import { defineConfig } from 'cypress'
import defaultConfig from './cypress-webpack.config'
import { devServer as cypressWebpackDevServer } from '@cypress/webpack-dev-server'
export default defineConfig({
...defaultConfig,
component: {
devServer: (devServerOptions) => {
return cypressWebpackDevServer({
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-webpack.config.ts | system-tests/project-fixtures/react/cypress-webpack.config.ts | import { defineConfig } from 'cypress'
import type * as webpack from 'webpack'
import type * as webpackDevServer from 'webpack-dev-server'
declare global {
namespace Cypress {
interface DefineDevServerConfig {
webpackConfig?: webpack.Configuration & {
devServer?: webpackDevServer.Configuration
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite-async-function-config.config.ts | system-tests/project-fixtures/react/cypress-vite-async-function-config.config.ts | import { defineConfig } from 'cypress'
import reactPlugin from '@vitejs/plugin-react'
import * as path from 'path'
import * as fs from 'fs'
module.exports = defineConfig({
component: {
devServer: {
framework: 'react',
bundler: 'vite',
viteConfig: async () => {
// to be really sure this ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite-port-in-use.config.ts | system-tests/project-fixtures/react/cypress-vite-port-in-use.config.ts | import { defineConfig } from 'cypress'
import defaultConfig from './cypress-vite.config'
import * as http from 'http'
export default defineConfig({
...defaultConfig,
component: {
...defaultConfig.component as Cypress.Config['component'],
devServer: {
framework: 'react',
bundler: 'vite',
v... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite-dev-server-function.config.ts | system-tests/project-fixtures/react/cypress-vite-dev-server-function.config.ts | import { defineConfig } from 'cypress'
import defaultConfig from './cypress-vite.config'
import { devServer as cypressViteDevServer } from '@cypress/vite-dev-server'
export default defineConfig({
...defaultConfig,
component: {
devServer: (devServerOptions) => {
return cypressViteDevServer({
...de... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-webpack-dev-server-custom-index.config.ts | system-tests/project-fixtures/react/cypress-webpack-dev-server-custom-index.config.ts | import { defineConfig } from 'cypress'
import defaultConfig from './cypress-webpack.config'
export default defineConfig({
...defaultConfig,
component: {
...defaultConfig.component as Cypress.Config['component'],
indexHtmlFile: 'my-component-index.html',
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite.config.ts | system-tests/project-fixtures/react/cypress-vite.config.ts | import { defineConfig } from 'cypress'
import type * as vite from 'vite'
declare global {
namespace Cypress {
interface DefineDevServerConfig {
viteConfig?: vite.UserConfig
}
}
}
const port = 8888
const viteConfig = require('./vite.config.js')
viteConfig.server ??= {}
viteConfig.server.port = port... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-webpack-no-support.config.ts | system-tests/project-fixtures/react/cypress-webpack-no-support.config.ts | import { defineConfig } from 'cypress'
import defaultConfig from './cypress-webpack.config'
export default defineConfig({
...defaultConfig,
component: {
...defaultConfig.component as Cypress.Config['component'],
supportFile: false,
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite-no-support.config.ts | system-tests/project-fixtures/react/cypress-vite-no-support.config.ts | import { defineConfig } from 'cypress'
import defaultConfig from './cypress-vite.config'
export default defineConfig({
...defaultConfig,
component: {
...defaultConfig.component as Cypress.Config['component'],
supportFile: false,
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-vite-default.config.ts | system-tests/project-fixtures/react/cypress-vite-default.config.ts | import { defineConfig } from 'cypress'
import * as vite from 'vite'
declare global {
namespace Cypress {
interface DefineDevServerConfig {
viteConfig?: vite.UserConfig
}
}
}
export default defineConfig({
videoCompression: false, // turn off video compression for CI
component: {
devServer: {... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/react/cypress-webpack-port.config.ts | system-tests/project-fixtures/react/cypress-webpack-port.config.ts | import cypressWebpackConfig from './cypress-webpack.config'
const port = 9999
cypressWebpackConfig.port = port
cypressWebpackConfig.env = {
PORT_CHECK: port,
}
export default cypressWebpackConfig
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/system-tests.ts | system-tests/lib/system-tests.ts | const snapshot = require('snap-shot-it')
import type { SpawnOptions, ChildProcess } from 'child_process'
import stream from 'stream'
import { expect } from './spec_helper'
import stripAnsi from 'strip-ansi'
import { dockerSpawner } from './docker'
import Express from 'express'
import Fixtures from './fixtures'
import ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/docker.ts | system-tests/lib/docker.ts | import type { SpawnerResult, Spawner } from './system-tests'
import Docker from 'dockerode'
import stream from 'stream'
import EventEmitter from 'events'
import path from 'path'
import { promises as fs } from 'fs'
import execa from 'execa'
import Fixtures from './fixtures'
import { nock } from './spec_helper'
let dock... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/fixtures.ts | system-tests/lib/fixtures.ts | import fs from 'fs-extra'
import _path from 'path'
import chokidar from 'chokidar'
import tempDir from 'temp-dir'
import type { ProjectFixtureDir } from './fixtureDirs'
export const root = _path.join(__dirname, '..')
const serverRoot = _path.join(__dirname, '../../packages/server/')
export { fixtureDirs, ProjectFixt... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/normalizeStdout.ts | system-tests/lib/normalizeStdout.ts | import Fixtures from './fixtures'
import _ from 'lodash'
import os from 'os'
export const e2ePath = Fixtures.projectPath('e2e')
export const DEFAULT_BROWSERS = ['electron', 'chrome', 'chrome-for-testing', 'firefox', 'webkit']
export const pathUpToProjectName = Fixtures.projectPath('')
export const browserNameVersio... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/serverStub.ts | system-tests/lib/serverStub.ts | import crypto from 'crypto'
import _ from 'lodash'
import Bluebird from 'bluebird'
import bodyParser from 'body-parser'
import Debug from 'debug'
import type { RequestHandler } from 'express'
import { getExample, assertSchema, RecordSchemaVersions } from './validations/cloudValidations'
import * as jose from 'jose'
i... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/resultsUtils.ts | system-tests/lib/resultsUtils.ts | import systemTests from './system-tests'
import dayjs from 'dayjs'
import _ from 'lodash'
const STATIC_DATE = '2018-02-01T20:14:19.323Z'
const expectDurationWithin = function (obj: object, duration: string, low: number, high: number, reset: number) {
const d: number | undefined = _.get(obj, duration)
// bail if ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/dep-installer/yarn.ts | system-tests/lib/dep-installer/yarn.ts | import path from 'path'
import tempDir from 'temp-dir'
import { homedir } from 'os'
export function getYarnCommand (opts: {
yarnV311: boolean
updateLockFile: boolean
isCI: boolean
runScripts: boolean
}): string {
let cmd = `yarn install`
if (opts.yarnV311) {
// @see https://yarnpkg.com/cli/install
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/dep-installer/npm.ts | system-tests/lib/dep-installer/npm.ts | import path from 'path'
import tempDir from 'temp-dir'
import { homedir } from 'os'
export function getNpmCommand (opts: {
yarnV311: boolean
updateLockFile: boolean
isCI: boolean
runScripts: boolean
}): string {
// `npm ci` is undesirable here since it won't use our `node_modules` cache
// https://github.c... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/dep-installer/index.ts | system-tests/lib/dep-installer/index.ts | import fs from 'fs-extra'
import path from 'path'
import execa from 'execa'
import { cyTmpDir, projectPath, projects, root } from '../fixtures'
import { getYarnCommand } from './yarn'
import { getNpmCommand } from './npm'
type Dependencies = Record<string, string>
/**
* Type for package.json files for system-tests e... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubWithNonFatalError.ts | system-tests/lib/protocol-stubs/protocolStubWithNonFatalError.ts | import type { AppCaptureProtocolInterface, CDPClient, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
export class AppCaptureProtocol implements AppCaptureProtocolInterface {
getDbMetadata (): { offset: number, si... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubWithRuntimeError.ts | system-tests/lib/protocol-stubs/protocolStubWithRuntimeError.ts | import type { AppCaptureProtocolInterface, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
export class AppCaptureProtocol implements AppCaptureProtocolInterface {
constructor () {
throw new Error('Error insta... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubResponse.ts | system-tests/lib/protocol-stubs/protocolStubResponse.ts | import path from 'path'
import { gzipSync } from 'zlib'
import crypto from 'crypto'
import base64Url from 'base64url'
import esbuild from 'esbuild'
export const SYSTEM_TESTS_PRIVATE = 'LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2UUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktjd2dnU2pBZ0VBQW9JQkFRQ3VBa1docWZSTTB3dFUKZ0toNXE5Z2... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubWithBeforeTestError.ts | system-tests/lib/protocol-stubs/protocolStubWithBeforeTestError.ts | import type { AppCaptureProtocolInterface, CDPClient, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
export class AppCaptureProtocol implements AppCaptureProtocolInterface {
getDbMetadata (): { offset: number, si... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubServiceWorker.ts | system-tests/lib/protocol-stubs/protocolStubServiceWorker.ts | import path from 'path'
import fs from 'fs-extra'
import type { AppCaptureProtocolInterface, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
const getFilePath = (filename) => {
return path.join(
path.resolve(_... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubFontFlooding.ts | system-tests/lib/protocol-stubs/protocolStubFontFlooding.ts | import path from 'path'
import fs from 'fs-extra'
import type { AppCaptureProtocolInterface, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
const getFilePath = (filename) => {
return path.join(
path.resolve(_... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubWithMissingArchive.ts | system-tests/lib/protocol-stubs/protocolStubWithMissingArchive.ts | import path from 'path'
import fs from 'fs-extra'
import type { AppCaptureProtocolInterface, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
const getFilePath = (filename) => {
return path.join(
path.resolve(_... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStub.ts | system-tests/lib/protocol-stubs/protocolStub.ts | import path from 'path'
import fs from 'fs-extra'
import type { AppCaptureProtocolInterface, ProtocolManagerOptions, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
const getFilePath = (filename) => {
return path.... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/lib/protocol-stubs/protocolStubWithBeforeSpecError.ts | system-tests/lib/protocol-stubs/protocolStubWithBeforeSpecError.ts | import type { AppCaptureProtocolInterface, CDPClient, ResponseEndedWithEmptyBodyOptions, ResponseStreamOptions, ResponseStreamTimedOutOptions } from '@packages/types'
import type { Readable } from 'stream'
export class AppCaptureProtocol implements AppCaptureProtocolInterface {
getDbMetadata (): { offset: number, si... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/vite-ct-function-api/src/support.cy.ts | system-tests/projects/vite-ct-function-api/src/support.cy.ts | describe('Support files', () => {
it('can load a support file', () => {
const $body = Cypress.$('body')
// Visual cue to help debug
const $supportNode = Cypress.$(`<h1>Support file hasn't been loaded 😿</h1>`)
$body.append($supportNode)
// @ts-ignore
expect(window.supportFileWasLoaded).to.b... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/vite-ct-function-api/cypress/component/support/component.ts | system-tests/projects/vite-ct-function-api/cypress/component/support/component.ts | import '@testing-library/cypress/add-commands'
import './styles.css'
before(() => {
// @ts-expect-error
window.supportFileWasLoaded = true
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/runner-ct-specs/vite.config.ts | system-tests/projects/runner-ct-specs/vite.config.ts | import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-with-ts-module-error/cypress.config.ts | system-tests/projects/config-with-ts-module-error/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
// @ts-ignore
foo: ,
supportFile: false,
setupNodeEvents: async (_, config) => {
return config
},
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/various-file-types/cypress/e2e/ts.cy.ts | system-tests/projects/various-file-types/cypress/e2e/ts.cy.ts | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false | |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/cypress.config.ts | system-tests/projects/next-14-tsconfig-tailwind/cypress.config.ts | import path from 'path'
import { defineConfig } from 'cypress'
export default defineConfig({
component: {
devServer: {
framework: 'next',
bundler: 'webpack',
// Necessary due to cypress/react resolving from cypress/node_modules rather than the project root
webpackConfig: {
resolve... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/tailwind.config.ts | system-tests/projects/next-14-tsconfig-tailwind/tailwind.config.ts | import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/app/layout.tsx | system-tests/projects/next-14-tsconfig-tailwind/app/layout.tsx | import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
const inter = Inter({ subsets: ['latin'] })
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
export default function RootLayout ({
children,
}: Readon... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/app/page-styles.cy.tsx | system-tests/projects/next-14-tsconfig-tailwind/app/page-styles.cy.tsx | import React from 'react'
import Home from './page'
describe('<Home />', () => {
it('renders', () => {
cy.mount(<Home />)
cy.contains('h1', 'Welcome to Next.js!')
// verify tailwind classes are applied correctly via import from support file.
cy.get('main').should('have.css', 'background-color', 'rgb... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/app/page.tsx | system-tests/projects/next-14-tsconfig-tailwind/app/page.tsx | export default function Home () {
return (
<main className="bg-amber-500">
<h1> Welcome to Next.js! </h1>
</main>
)
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/app/page.cy.tsx | system-tests/projects/next-14-tsconfig-tailwind/app/page.cy.tsx | import React from 'react'
import Home from './page'
describe('<Home />', () => {
it('renders', () => {
cy.mount(<Home />)
cy.contains('h1', 'Welcome to Next.js!')
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/next-14-tsconfig-tailwind/cypress/support/component.ts | system-tests/projects/next-14-tsconfig-tailwind/cypress/support/component.ts | import 'tailwindcss/tailwind.css'
import { mount } from 'cypress/react'
declare global {
namespace Cypress {
interface Chainable {
mount: typeof mount
}
}
}
Cypress.Commands.add('mount', mount)
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/cypress-in-cypress/cypress/component/support/index.ts | system-tests/projects/cypress-in-cypress/cypress/component/support/index.ts | import { registerMountFn } from '@packages/frontend-shared/cypress/support/common'
registerMountFn()
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-node-next/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-node-next/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
supportFile: false,
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-module-no-tsconfig/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-module-no-tsconfig/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: { supportFile: false },
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-module-and-esbuild/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-module-and-esbuild/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: { supportFile: false },
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-extends/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-extends/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: { supportFile: false },
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-module-component/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-module-component/cypress.config.ts | import { defineConfig } from 'cypress'
import { devServer } from '@cypress/vite-dev-server'
export default defineConfig({
component: {
experimentalSingleTabRunMode: true,
specPattern: 'src/**/*.ts',
indexHtmlFile: 'component-index.html',
supportFile: false,
async setupNodeEvents (_, config) {
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-module-component/vite.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-module-component/vite.config.ts | import { defineConfig } from 'vite'
export default defineConfig({
server: {
fs: {
// this is needed to run on CI since we
// do some magic with symlinks and caching
// to make everything fast, that Vite does
// not seem to like.
// https://vitejs.dev/config/#server-fs-allow
al... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-tsconfig-es5/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-tsconfig-es5/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
supportFile: false,
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-cjs-and-esm/config-with-ts-module/cypress.config.ts | system-tests/projects/config-cjs-and-esm/config-with-ts-module/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
supportFile: false,
setupNodeEvents: async (_, config: Cypress.PluginConfigOptions) => {
await import('find-up')
return config
},
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/vue3-vite-ts-unconfigured/vite.config.ts | system-tests/projects/vue3-vite-ts-unconfigured/vite.config.ts | import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/vue3-vite-ts-unconfigured/src/main.ts | system-tests/projects/vue3-vite-ts-unconfigured/src/main.ts | import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/vue3-vite-ts-unconfigured/src/env.d.ts | system-tests/projects/vue3-vite-ts-unconfigured/src/env.d.ts | /// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/no-specs-babel-conflict/cypress.config.ts | system-tests/projects/no-specs-babel-conflict/cypress.config.ts | export default ({
component: {
experimentalSingleTabRunMode: true,
devServer: {
framework: 'react',
bundler: 'webpack',
},
},
e2e: {
supportFile: false,
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react19/vite.config.ts | system-tests/projects/react19/vite.config.ts | import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-with-ts/cypress.config.ts | system-tests/projects/config-with-ts/cypress.config.ts | export default {
pageLoadTimeout: 10000,
e2e: {
defaultCommandTimeout: 500,
videoCompression: 20,
supportFile: false,
},
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/multiple-support-files/cypress/support/e2e.ts | system-tests/projects/multiple-support-files/cypress/support/e2e.ts | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false | |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-5/cypress.config.ts | system-tests/projects/ts-proj-5/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {},
component: {
supportFile: false,
devServer: {
bundler: 'vite',
viteConfig: {},
},
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-5/src/foo.cy.ts | system-tests/projects/ts-proj-5/src/foo.cy.ts | const foo = 'FOO'
describe('foo', () => {
it('does foo things', () => {
expect(foo).to.eq('FOO')
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-5/cypress/support/e2e.ts | system-tests/projects/ts-proj-5/cypress/support/e2e.ts | // ***********************************************************
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// auto... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-5/cypress/e2e/math.ts | system-tests/projects/ts-proj-5/cypress/e2e/math.ts | export const add = (a: number, b: number) => {
return a + b
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-5/cypress/e2e/app.cy.ts | system-tests/projects/ts-proj-5/cypress/e2e/app.cy.ts | import { add } from './math'
it('is true', () => {
// @ts-ignore
expect(add(1, 2)).to.eq(3)
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-with-paths/cypress.config.ts | system-tests/projects/ts-proj-with-paths/cypress.config.ts | import { appName } from '@app/main'
if (appName !== 'Best App Ever') {
throw new Error('Path alias not working properly in config file!')
}
module.exports = {
e2e: {
supportFile: false,
},
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-with-paths/src/main.ts | system-tests/projects/ts-proj-with-paths/src/main.ts | export const appName = 'Best App Ever'
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-with-paths/cypress/support/index.ts | system-tests/projects/ts-proj-with-paths/cypress/support/index.ts | import { appName } from '@app/main'
if (appName !== 'Best App Ever') {
throw new Error('Path alias not working properly in support file!')
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-with-paths/cypress/e2e/app.cy.ts | system-tests/projects/ts-proj-with-paths/cypress/e2e/app.cy.ts | import { appName } from '@app/main'
it('verifies path mapping', () => {
// @ts-ignore
expect(appName).to.equal('Best App Ever')
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-tsconfig-in-plugins/cypress.config.ts | system-tests/projects/ts-proj-tsconfig-in-plugins/cypress.config.ts | // this tests that the tsconfig.json is loaded from the config/plugins directory.
// if it isn't, the lack of "downlevelIteration" support will cause this to
// fail at runtime with "RangeError: Invalid array length"
[...Array(100).keys()].map((x) => `${x}`)
module.exports = {
'e2e': {
'supportFile': false,
},... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/config-with-ts-syntax-error/cypress.config.ts | system-tests/projects/config-with-ts-syntax-error/cypress.config.ts | export default {
e2e: {
supportFile: false
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/remote-debugging-port-removed/cypress/e2e/spec.cy.ts | system-tests/projects/remote-debugging-port-removed/cypress/e2e/spec.cy.ts | describe('passes', () => {
it('passes', () => {})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/no-tsconfig-ts-js-mix/cypress/e2e/spec.cy.ts | system-tests/projects/no-tsconfig-ts-js-mix/cypress/e2e/spec.cy.ts | it('is true', () => {
expect(true).to.be.true
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react18/vite.config.ts | system-tests/projects/react18/vite.config.ts | import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react-vite-ts-configured/cypress.config.ts | system-tests/projects/react-vite-ts-configured/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
component: {
experimentalSingleTabRunMode: true,
devServer: {
framework: 'react',
bundler: 'vite',
},
},
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react-vite-ts-configured/vite.config.ts | system-tests/projects/react-vite-ts-configured/vite.config.ts | import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
fs: {
// this is needed to run on CI since we
// do some magic with symlinks and caching
// to make everything fast, that Vite... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react-vite-ts-configured/src/App.tsx | system-tests/projects/react-vite-ts-configured/src/App.tsx | import { useState } from 'react'
import logo from './logo.svg'
import './App.css'
function App () {
const [count, setCount] = useState(0)
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>Hello Vite + React!</p>
<... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react-vite-ts-configured/src/main.tsx | system-tests/projects/react-vite-ts-configured/src/main.tsx | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root'),
)
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react-vite-ts-configured/src/App.cy.tsx | system-tests/projects/react-vite-ts-configured/src/App.cy.tsx | import React from 'react'
import { mount } from 'cypress/react'
import App from './App.tsx'
it('works', () => {
mount(<App />)
cy.contains('Learn React')
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/react-vite-ts-configured/src/vite-env.d.ts | system-tests/projects/react-vite-ts-configured/src/vite-env.d.ts | /// <reference types="vite/client" />
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/svelte-vite-unconfigured/vite.config.ts | system-tests/projects/svelte-vite-unconfigured/vite.config.ts | import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vite.dev/config/
export default defineConfig({
plugins: [svelte()],
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/remote-debugging-disconnect/cypress/e2e/spec.cy.ts | system-tests/projects/remote-debugging-disconnect/cypress/e2e/spec.cy.ts | const callAutomation = () => {
return Cypress.automation('remote:debugger:protocol', {
command: 'Browser.getVersion',
})
}
describe('e2e remote debugging disconnect', () => {
it('reconnects as expected', () => {
// 1 probing connection and 1 real connection should have been made during startup
cy.tas... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-with-module-esnext/cypress.config.ts | system-tests/projects/ts-proj-with-module-esnext/cypress.config.ts | import { asyncGreeting } from './greeting'
module.exports = {
'supportFolder': false,
'e2e': {
'supportFile': false,
setupNodeEvents (on, config) {
on('task', {
hello: asyncGreeting,
})
return config
},
},
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ts-proj-with-module-esnext/greeting.ts | system-tests/projects/ts-proj-with-module-esnext/greeting.ts | export const asyncGreeting = async (greeting: string) => {
return Promise.resolve(`Hello, ${greeting}!`)
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/cypress.config.ts | system-tests/projects/angular-cli-configured/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
component: {
experimentalSingleTabRunMode: true,
devServer: {
framework: 'angular',
bundler: 'webpack',
webpackConfig: {
resolve: {
alias: {
'@angular/common/http': require.resolve('@angular/c... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/src/main.ts | system-tests/projects/angular-cli-configured/src/main.ts | import { bootstrapApplication } from '@angular/platform-browser'
import { appConfig } from './app/app.config'
import { AppComponent } from './app/app.component'
bootstrapApplication(AppComponent, appConfig)
.catch((err) => console.error(err))
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/src/app/app.config.ts | system-tests/projects/angular-cli-configured/src/app/app.config.ts | import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'
import { provideRouter } from '@angular/router'
import { routes } from './app.routes'
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)],
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/src/app/app.component.spec.ts | system-tests/projects/angular-cli-configured/src/app/app.component.spec.ts | import { TestBed } from '@angular/core/testing'
import { AppComponent } from './app.component'
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent],
}).compileComponents()
})
it('should create the app', () => {
const fixture =... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/src/app/app.component.ts | system-tests/projects/angular-cli-configured/src/app/app.component.ts | import { Component } from '@angular/core'
import { RouterOutlet } from '@angular/router'
@Component({
selector: 'app-root',
imports: [RouterOutlet],
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'angular-cli-configured'
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/src/app/app.routes.ts | system-tests/projects/angular-cli-configured/src/app/app.routes.ts | import { Routes } from '@angular/router'
export const routes: Routes = []
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/angular-cli-configured/src/app/app.component.cy.ts | system-tests/projects/angular-cli-configured/src/app/app.component.cy.ts | import { AppComponent } from './app.component'
it('should pass', () => {
cy.mount(AppComponent)
cy.contains('angular-cli-configured')
})
| 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.