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/projects/angular-signals/src/signals-optional/signals-optional.component.cy.ts
system-tests/projects/angular-signals/src/signals-optional/signals-optional.component.cy.ts
import { signal } from '@angular/core' import { SignalsOptionalComponent } from './signals-optional.component' import { createOutputSpy } from 'cypress/angular' it('can handle default props', () => { cy.mount(SignalsOptionalComponent) cy.get('[data-cy="signals-optional-component-title-display"]').should('contain....
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-signals/src/signals-complex/signals-complex.component.cy.ts
system-tests/projects/angular-signals/src/signals-complex/signals-complex.component.cy.ts
import { signal } from '@angular/core' import { SignalsComplexComponent } from './signals-complex.component' import { createOutputSpy } from 'cypress/angular' import cloneDeep from 'lodash/cloneDeep' const user = { firstName: 'Hank', lastName: 'Hill', age: 41, } const acquaintances = [ { firstName: 'Jeffr...
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-signals/src/signals-complex/signals-complex.component.ts
system-tests/projects/angular-signals/src/signals-complex/signals-complex.component.ts
import { ChangeDetectionStrategy, Component, input, model, } from '@angular/core' import { AsyncPipe, NgFor, NgIf } from '@angular/common' import { toObservable } from '@angular/core/rxjs-interop' import { combineLatest, distinctUntilChanged, map } from 'rxjs' export type User = { firstName: string lastNam...
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-signals/src/control-flow/control-flow.component.ts
system-tests/projects/angular-signals/src/control-flow/control-flow.component.ts
import { ChangeDetectionStrategy, Component, model, } from '@angular/core' export type SuperHero = { name: string nickname: string age: number isMortal: boolean } @Component({ selector: 'control-flow-component', templateUrl: './control-flow.component.html', styleUrls: ['./control-flow.component.sc...
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-signals/src/control-flow/control-flow.component.cy.ts
system-tests/projects/angular-signals/src/control-flow/control-flow.component.cy.ts
import { ControlFlowComponent, SuperHero } from './control-flow.component' // @see https://angular.dev/guide/templates/control-flow it('works with basic control flow', () => { const superHeroes: SuperHero[] = [ { name: 'Clark Kent', nickname: 'Man of Steel', age: 28, isMortal: 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/angular-signals/src/signals-required/signals-required.component.ts
system-tests/projects/angular-signals/src/signals-required/signals-required.component.ts
import { ChangeDetectionStrategy, Component, input, model, } from '@angular/core' @Component({ selector: 'signals-required-component', templateUrl: './signals-required.component.html', styleUrls: ['./signals-required.component.scss'], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,...
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-signals/src/signals-required/signals-required.component.cy.ts
system-tests/projects/angular-signals/src/signals-required/signals-required.component.cy.ts
import { signal, computed } from '@angular/core' import { SignalsRequiredComponent } from './signals-required.component' import { createOutputSpy } from 'cypress/angular' // NOTE: if this is the only test in your test suite, this error will continually throw until the fixture is closed. it('errors on required props mi...
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-signals/cypress/support/component.ts
system-tests/projects/angular-signals/cypress/support/component.ts
import { mount } from 'cypress/angular' // 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 Cypress { interface Ch...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/webpack-dev-server-ts/helloWorld.ts
system-tests/projects/webpack-dev-server-ts/helloWorld.ts
export const helloWorld = () => { return '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/projects/webpack-dev-server-ts/webpack.config.ts
system-tests/projects/webpack-dev-server-ts/webpack.config.ts
export default { mode: 'development', devtool: 'inline-source-map', entry: './app.ts', output: { filename: 'bundle.js', }, resolve: { // Add `.ts` and `.tsx` as a resolvable extension. extensions: ['.ts', '.tsx', '.js'], // Add support for TypeScripts fully qualified ESM imports. extensi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/webpack-dev-server-ts/cypress.config.ts
system-tests/projects/webpack-dev-server-ts/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { bundler: 'webpack', } as any, 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/webpack-dev-server-ts/test.cy.ts
system-tests/projects/webpack-dev-server-ts/test.cy.ts
import { helloWorld } from './helloWorld' it('should return "Hello World"', () => { expect(helloWorld()).eq('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/projects/config-with-custom-file-ts/cypress.config.custom.ts
system-tests/projects/config-with-custom-file-ts/cypress.config.custom.ts
const config: Record<string, any> = { pageLoadTimeout: 10000, e2e: { supportFile: false, defaultCommandTimeout: 500, videoCompression: 20, }, } export default 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/cypress.config.ts
system-tests/projects/ts-proj/cypress.config.ts
module.exports = { e2e: {}, }
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/cypress/support/e2e.ts
system-tests/projects/ts-proj/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/cypress/support/commands.ts
system-tests/projects/ts-proj/cypress/support/commands.ts
/// <reference types="cypress" /> // Copied an example command from https://on.cypress.io/custom-commands Cypress.Commands.add('clickLink', (label: string | number | RegExp) => { cy.get('a').contains(label).click() })
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/cypress/support/index.ts
system-tests/projects/ts-proj/cypress/support/index.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/cypress/e2e/math.ts
system-tests/projects/ts-proj/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/cypress/e2e/app.cy.ts
system-tests/projects/ts-proj/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/vite-ct-object-api/src/support.cy.ts
system-tests/projects/vite-ct-object-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-object-api/cypress/component/support/component.ts
system-tests/projects/vite-ct-object-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/angular-cli-unconfigured/src/main.ts
system-tests/projects/angular-cli-unconfigured/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-unconfigured/src/app/app.config.ts
system-tests/projects/angular-cli-unconfigured/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-unconfigured/src/app/app.component.spec.ts
system-tests/projects/angular-cli-unconfigured/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-unconfigured/src/app/app.component.ts
system-tests/projects/angular-cli-unconfigured/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', styleUrl: './app.component.css', }) export class AppComponent { title = 'angular-cli-unconfigured' }
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-unconfigured/src/app/app.routes.ts
system-tests/projects/angular-cli-unconfigured/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/react-vite-ts-unconfigured/vite.config.ts
system-tests/projects/react-vite-ts-unconfigured/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-unconfigured/src/App.tsx
system-tests/projects/react-vite-ts-unconfigured/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-unconfigured/src/main.tsx
system-tests/projects/react-vite-ts-unconfigured/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-unconfigured/src/vite-env.d.ts
system-tests/projects/react-vite-ts-unconfigured/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/vue3-vite-ts-configured/cypress.config.ts
system-tests/projects/vue3-vite-ts-configured/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { framework: 'vue', 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/vue3-vite-ts-configured/vite.config.ts
system-tests/projects/vue3-vite-ts-configured/vite.config.ts
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], 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 ...
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-configured/src/main.ts
system-tests/projects/vue3-vite-ts-configured/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-configured/src/env.d.ts
system-tests/projects/vue3-vite-ts-configured/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/vue3-vite-ts-configured/src/components/HelloWorld.cy.ts
system-tests/projects/vue3-vite-ts-configured/src/components/HelloWorld.cy.ts
import { mount } from 'cypress/vue' import HelloWorld from './HelloWorld.vue' it('works', () => { // TODO: fix typings issue with mount. @see https://github.com/cypress-io/cypress/issues/29799 mount(HelloWorld, { props: { msg: 'Hello!', }, }) cy.contains('Hello!') })
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-webpack-ts-configured/shims-vue.d.ts
system-tests/projects/vue3-webpack-ts-configured/shims-vue.d.ts
declare module '*.vue' { import { DefineComponent } from 'vue' 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/vue3-webpack-ts-configured/cypress.config.ts
system-tests/projects/vue3-webpack-ts-configured/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { framework: 'vue', bundler: 'webpack', }, }, })
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-webpack-ts-configured/src/mount.cy.ts
system-tests/projects/vue3-webpack-ts-configured/src/mount.cy.ts
import HelloWorld from './components/HelloWorld.vue' import { mount } from 'cypress/vue' describe('mount', () => { context('teardown', () => { beforeEach(() => { cy.get('[data-cy-root]').children().should('have.length', 0) }) it('should mount', () => { // TODO: fix typings issue with 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/vue3-webpack-ts-configured/src/main.ts
system-tests/projects/vue3-webpack-ts-configured/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-webpack-ts-configured/src/components/HelloWorld.cy.ts
system-tests/projects/vue3-webpack-ts-configured/src/components/HelloWorld.cy.ts
import { mount } from 'cypress/vue' import HelloWorld from './HelloWorld.vue' describe('<Logo />', () => { it('contains the default slot in its h1', () => { const slotContent = 'Welcome to testing in Vue CLI' // TODO: fix typings issue with mount. @see https://github.com/cypress-io/cypress/issues/29799 ...
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-webpack-ts-configured/src/components/Errors.cy.ts
system-tests/projects/vue3-webpack-ts-configured/src/components/Errors.cy.ts
import Errors from './Errors.vue' import { mount } from 'cypress/vue' describe('Errors', () => { it('error on mount', () => { // TODO: fix typings issue with mount. @see https://github.com/cypress-io/cypress/issues/29799 // @ts-expect-error mount(Errors, { propsData: { throwError: 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/vue3-webpack-ts-configured/cypress/support/component.ts
system-tests/projects/vue3-webpack-ts-configured/cypress/support/component.ts
import { mount } from 'cypress/vue' 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/no-specs/cypress.config.ts
system-tests/projects/no-specs/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/no-specs/cypress-custom-spec-pattern.config.ts
system-tests/projects/no-specs/cypress-custom-spec-pattern.config.ts
module.exports = { component: { specPattern: 'src/specs-folder/*.cy.{js,jsx}', 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/system-tests/projects/angular-custom-root/cypress.config.ts
system-tests/projects/angular-custom-root/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-custom-root/cypress/support/component.ts
system-tests/projects/angular-custom-root/cypress/support/component.ts
/// <reference types="cypress" /> import { mount } from 'cypress/angular' declare global { namespace Cypress { interface Chainable { mount: typeof mount } } } Cypress.Commands.add('mount', mount) // Example use: // cy.mount(MyComponent)
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-custom-root/ui/main.ts
system-tests/projects/angular-custom-root/ui/main.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' import { AppModule } from './app/app.module' import 'zone.js' // Included with Angular CLI. platformBrowserDynamic().bootstrapModule(AppModule) .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-custom-root/ui/app/app.component.ts
system-tests/projects/angular-custom-root/ui/app/app.component.ts
import { Component } from '@angular/core' @Component({ selector: 'app-root', template: '<h1>{{message}}</h1>', styles: [` h1 { background-color: blue; color: white }`], }) export class AppComponent { message = '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/projects/angular-custom-root/ui/app/app.module.ts
system-tests/projects/angular-custom-root/ui/app/app.module.ts
import { NgModule } from '@angular/core' import { BrowserModule } from '@angular/platform-browser' import { AppComponent } from './app.component' @NgModule({ declarations: [AppComponent], imports: [BrowserModule], bootstrap: [AppComponent], }) export class AppModule {}
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-custom-root/ui/app/app.component.cy.ts
system-tests/projects/angular-custom-root/ui/app/app.component.cy.ts
import { AppComponent } from './app.component' describe('AppComponent', () => { it('should mount', () => { cy.mount(AppComponent) cy.contains('h1', '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/projects/ts-proj-tsconfig-in-cypress/cypress.config.ts
system-tests/projects/ts-proj-tsconfig-in-cypress/cypress.config.ts
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/ct-public-api-solid-js/cypress-ct-solid-js/definition.d.ts
system-tests/projects/ct-public-api-solid-js/cypress-ct-solid-js/definition.d.ts
/// <reference types="cypress" /> /** * The definition. */ declare const _default: Cypress.ThirdPartyComponentFrameworkDefinition export default _default
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/ct-public-api-solid-js/cypress-ct-solid-js/index.d.ts
system-tests/projects/ct-public-api-solid-js/cypress-ct-solid-js/index.d.ts
/// <reference types="cypress" /> /// <reference types="cypress" /> import { render } from 'solid-js/web' interface MountingOptions { log?: boolean } export declare function mount(component: Parameters<typeof render>[0], options?: MountingOptions): Cypress.Chainable<undefined>; export {}
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-custom-index-html/cypress.config.ts
system-tests/projects/vue3-vite-ts-custom-index-html/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { bundler: 'vite', framework: 'vue', }, indexHtmlFile: 'cypress/support/custom-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/projects/vue3-vite-ts-custom-index-html/vite.config.ts
system-tests/projects/vue3-vite-ts-custom-index-html/vite.config.ts
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], 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 ...
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-custom-index-html/src/main.ts
system-tests/projects/vue3-vite-ts-custom-index-html/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-custom-index-html/src/env.d.ts
system-tests/projects/vue3-vite-ts-custom-index-html/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/vue3-vite-ts-custom-index-html/src/components/HelloWorld.cy.ts
system-tests/projects/vue3-vite-ts-custom-index-html/src/components/HelloWorld.cy.ts
import { mount } from 'cypress/vue' import HelloWorld from './HelloWorld.vue' it('works', () => { // TODO: fix typings issue with mount. @see https://github.com/cypress-io/cypress/issues/29799 mount(HelloWorld, { props: { msg: 'Hello!', }, }) cy.contains('Hello!') cy.get('body').should('have.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/ts-proj-custom-names/cypress/support.ts
system-tests/projects/ts-proj-custom-names/cypress/support.ts
// example Cypress support file Cypress.Commands.add('customCommand', () => {}) function add (a: number, b: number) { return a + b } Cypress.Commands.add('add', add)
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-custom-names/cypress/e2e/math.ts
system-tests/projects/ts-proj-custom-names/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-custom-names/cypress/e2e/app.cy.ts
system-tests/projects/ts-proj-custom-names/cypress/e2e/app.cy.ts
import { add } from './math' it('is true', () => { expect(add(1, 2)).to.eq(3) }) it('uses custom command', () => { // defined in support file cy.add(1, 2).then((result: number) => expect(result).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/next-16-tsconfig-tailwind/cypress.config.ts
system-tests/projects/next-16-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-16-tsconfig-tailwind/next.config.ts
system-tests/projects/next-16-tsconfig-tailwind/next.config.ts
import type { NextConfig } from 'next' const nextConfig: NextConfig = { /* config options here */ } export default nextConfig
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-16-tsconfig-tailwind/app/layout.tsx
system-tests/projects/next-16-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-16-tsconfig-tailwind/app/page-styles.cy.tsx
system-tests/projects/next-16-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', 'okl...
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-16-tsconfig-tailwind/app/page.tsx
system-tests/projects/next-16-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-16-tsconfig-tailwind/app/page.cy.tsx
system-tests/projects/next-16-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-16-tsconfig-tailwind/cypress/support/component.ts
system-tests/projects/next-16-tsconfig-tailwind/cypress/support/component.ts
// *********************************************************** // This example support/component.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 /...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/protocol/cypress-with-file-preprocessor.config.ts
system-tests/projects/protocol/cypress-with-file-preprocessor.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ projectId: 'pid123', e2e: { supportFile: false, setupNodeEvents: (on, config) => { on('file:preprocessor', (file) => { return file.filePath }) return config }, }, component: { devServer: { fram...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/protocol/cypress.config.ts
system-tests/projects/protocol/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ projectId: 'pid123', e2e: { supportFile: false, setupNodeEvents: (on, config) => {}, }, component: { devServer: { framework: 'react', bundler: 'webpack', webpackConfig: { module: { rules: [ ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/protocol/cypress-with-service-worker-preloaded.config.ts
system-tests/projects/protocol/cypress-with-service-worker-preloaded.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ projectId: 'pid123', e2e: { supportFile: 'cypress/support/e2e-preload-service-worker.ts', setupNodeEvents: (on, 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/protocol/cypress/support/e2e-preload-service-worker.ts
system-tests/projects/protocol/cypress/support/e2e-preload-service-worker.ts
const setupServiceWorker = async () => { try { await window.navigator.serviceWorker?.register(new URL('http://localhost:2121/cypress/fixtures/service-worker-assets/scope/service-worker.js')) } catch (e) { // This errors the first time through before top is reloaded } } Cypress.on('test:before:run:async',...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/protocol/cypress/support/component.ts
system-tests/projects/protocol/cypress/support/component.ts
import { mount } from 'cypress/react' // 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 Cypress { interface Chai...
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-20/cypress.config.ts
system-tests/projects/angular-20/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/pristine/expected-cypress-ts-e2e/cypress.config.ts
system-tests/projects/pristine/expected-cypress-ts-e2e/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ e2e: { setupNodeEvents (on, config) { // implement node event listeners here }, }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/pristine/expected-cypress-ts-e2e/cypress/support/e2e.ts
system-tests/projects/pristine/expected-cypress-ts-e2e/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/pristine/expected-cypress-ts-e2e/cypress/support/commands.ts
system-tests/projects/pristine/expected-cypress-ts-e2e/cypress/support/commands.ts
/// <reference types="cypress" /> // *********************************************** // This example commands.ts shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-comma...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/monorepoPaths.ts
scripts/gulp/monorepoPaths.ts
/* eslint-disable */ // Auto-generated by makePathMap.ts import path from 'path' export const monorepoPaths = { root: path.join(__dirname, '../..'), pkgDir: path.join(__dirname, '../../packages'), toolingDir: path.join(__dirname, '../../system-tests'), pkgApp: path.join(__dirname, '../../packages/app'), pkgCo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/gulpfile.ts
scripts/gulp/gulpfile.ts
/** * More information about our build process lives inside of the * CONTRIBUTING.md * * @summary Build pipeline for all new commands * @docs https://gulpjs.com * @usage `yarn gulp myTaskName` from the workspace root directory */ import gulp from 'gulp' import { autobarrelWatcher } from './tasks/gulpAutobarrel'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/gulpConstants.ts
scripts/gulp/gulpConstants.ts
// Where to fetch the remote "federated" schema. If you have a long-running branch // against a development schema, it's probably easiest to set this manually to "develop" declare global { namespace NodeJS { interface ProcessEnv { CYPRESS_INTERNAL_ENV?: 'staging' | 'development' | 'production' } } } ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpVite.ts
scripts/gulp/tasks/gulpVite.ts
/** * The Launchpad and App clients are both built with Vite and largely * share the same test pipeline and build commands. * * @summary Build pipeline for the Vite frontend(s): * @packages/launchpad + @packages/app * @docs https://vitejs.dev */ import type { SpawnOptions } from 'child_process' import...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpMakePackage.ts
scripts/gulp/tasks/gulpMakePackage.ts
import inquirer from 'inquirer' import path from 'path' import fs from 'fs-extra' import dedent from 'dedent' import { monorepoPaths } from '../monorepoPaths' export async function makePackage () { const results = await inquirer.prompt<{ packageName: string target: 'server' description: string scaff...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpGraphql.ts
scripts/gulp/tasks/gulpGraphql.ts
// @ts-expect-error - no types import rp from '@cypress/request-promise' import path from 'path' import pDefer from 'p-defer' import chalk from 'chalk' import fs from 'fs-extra' import { buildSchema, extendSchema, GraphQLSchema, introspectionFromSchema, isObjectType, parse } from 'graphql' import { minifyIntrospectionQ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpSyncValidations.ts
scripts/gulp/tasks/gulpSyncValidations.ts
import fs from 'fs-extra' import path from 'path' import crossFetch from 'cross-fetch' const INTERNAL_CLOUD_ENV = process.env.CYPRESS_INTERNAL_ENV || 'production' const CY_CLOUD_VALIDATION_BASE = { test: 'https://api.cypress.io', production: 'https://api.cypress.io', staging: 'https://api-staging.cypress.io', ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpCypress.ts
scripts/gulp/tasks/gulpCypress.ts
/** * How the Cypress backend is started and watched. Formerly * `node scripts/cypress.js open` or `node scripts/cypress.js run` * * @summary Gulp tasks to run the Cypress app. */ import chokidar from 'chokidar' import path from 'path' import pDefer from 'p-defer' import fs from 'fs-extra' import { DevActions } fr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpWebpack.ts
scripts/gulp/tasks/gulpWebpack.ts
import chalk from 'chalk' import pDefer from 'p-defer' import { monorepoPaths } from '../monorepoPaths' import { universalSpawn } from '../utils/childProcessUtils' import { addChildProcess } from './gulpRegistry' type Env = typeof process.env export function webpackReporter () { return runWebpack({ cwd: monorep...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpUtils.ts
scripts/gulp/tasks/gulpUtils.ts
import detectPort from 'detect-port' import { exit } from '../utils/exitUtil' export async function friendlyStartupWarnings () { const ALL_SERVER_PORTS_USED = [3000, 4000, 8484, 1234] const unavailablePorts: number[] = [] await Promise.all( ALL_SERVER_PORTS_USED.map(async (port) => { if (port !== (awa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpRegistry.ts
scripts/gulp/tasks/gulpRegistry.ts
import type { ChildProcess } from 'child_process' import pDefer from 'p-defer' import treeKill from 'tree-kill' import gulp from 'gulp' const childProcesses = new Set<ChildProcess>() const exitedPids = new Set<number>() let hasExited = false export function addChildProcess (child: ChildProcess) { if (hasExited) { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpTypeHelpers.ts
scripts/gulp/tasks/gulpTypeHelpers.ts
// import path from 'path' // import fs from 'fs-extra' // import dedent from 'dedent' // import { monorepoPaths } from '../monorepoPaths' /** * TODO(tim): revisit to see if this is useful * Rather than copy-paste the Cypress d.ts into the @packages/types, we can regex out the ones we want - * so we keep a single ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpAutobarrel.ts
scripts/gulp/tasks/gulpAutobarrel.ts
import { resolveAutobarrelConfig, autobarrelWatch } from 'autobarrel' import path from 'path' import { monorepoPaths } from '../monorepoPaths' /** * Creates "barrel" files according to config in autobarrel.json: * https://github.com/tgriesser/autobarrel * Particularly useful in @packages/data-context/graphql becaus...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpE2ETestScaffold.ts
scripts/gulp/tasks/gulpE2ETestScaffold.ts
import chokidar from 'chokidar' import path from 'path' import fs from 'fs-extra' import _ from 'lodash' import { monorepoPaths } from '../monorepoPaths' const PROJECT_FIXTURE_DIRECTORY = 'system-tests/projects' const DIR_PATH = path.join(monorepoPaths.root, PROJECT_FIXTURE_DIRECTORY) const OUTPUT_PATH = path.join(m...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/tasks/gulpCloudDeliveredTypes.ts
scripts/gulp/tasks/gulpCloudDeliveredTypes.ts
process.env.CYPRESS_INTERNAL_ENV = process.env.CYPRESS_INTERNAL_ENV ?? 'production' import path from 'path' import fs from 'fs-extra' import { postStudioSession } from '@packages/server/lib/cloud/api/studio/post_studio_session' import os from 'os' import { ensureStudioBundle } from '@packages/server/lib/cloud/studio/e...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/utils/childProcessUtils.ts
scripts/gulp/utils/childProcessUtils.ts
import { ChildProcess, ChildProcessWithoutNullStreams, exec, ExecOptions, fork, ForkOptions, spawn, SpawnOptions, } from 'child_process' import through2 from 'through2' import pDefer from 'p-defer' import util from 'util' import { prefixLog, prefixStream } from './prefixStream' import { addChildProcess } from ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/utils/exitUtil.ts
scripts/gulp/utils/exitUtil.ts
import chalk from 'chalk' import dedent from 'dedent' export function exit (msg: string | Error): void { if (msg instanceof Error) { console.log(msg.stack) return exit(msg.message) } console.error(`\n${chalk.red(dedent(msg))}\n`) process.exit(1) }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/utils/nexusTypegenUtil.ts
scripts/gulp/utils/nexusTypegenUtil.ts
import { spawn, execSync } from 'child_process' import chalk from 'chalk' import pDefer from 'p-defer' import chokidar from 'chokidar' import _ from 'lodash' import path from 'path' import fs from 'fs-extra' import { generateFrontendSchema } from '../tasks/gulpGraphql' import { monorepoPaths } from '../monorepoPaths' ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/utils/prefixStream.ts
scripts/gulp/utils/prefixStream.ts
import chalk from 'chalk' import { Transform } from 'stream' export function prefixLog (prefixStr: string): Pick<typeof console, 'log' | 'error'> { const prefix = `[${chalk.gray(prefixStr)}]: ` return { log: (...args: string[]) => { return console.log(prefix, ...args) }, error: (...args: string[...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/gulp/utils/makePathMap.ts
scripts/gulp/utils/makePathMap.ts
import fs from 'fs-extra' import path from 'path' import _ from 'lodash' const ROOT_DIR = path.join(__dirname, '../../..') /** * Builds */ export async function makePathMap () { const packages = await fs.readdir(path.join(ROOT_DIR, 'packages')) const dirs = await Promise.all( packages.map(async (p) => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/binary/s3-api.ts
scripts/binary/s3-api.ts
const debug = require('debug')('cypress:binary') import la from 'lazy-ass' import is from 'check-more-types' import { CopyObjectCommandInput, CopyObjectCommandOutput, ObjectCannedACL, S3 } from '@aws-sdk/client-s3' export const hasOnlyStringValues = (o) => { return Object.values(o).every((v) => is.unemptyString(v)) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/binary/meta.ts
scripts/binary/meta.ts
import path from 'path' import os from 'os' // canonical platform names export const platforms = { darwin: 'darwin', linux: 'linux', windows: 'win32', } as const export const PLATFORM = os.platform() as any if (!Object.values(platforms).includes(PLATFORM)) { throw new Error(`Invalid build platform ${PLATFOR...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/scripts/binary/build.ts
scripts/binary/build.ts
import os from 'os' import fs from 'fs-extra' import path from 'path' import _ from 'lodash' import del from 'del' import chalk from 'chalk' import electron from '../../packages/electron' import la from 'lazy-ass' import { promisify } from 'util' import glob from 'glob' import * as packages from './util/packages' impor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false