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-cli-configured/cypress/support/component.ts
system-tests/projects/angular-cli-configured/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/vue3-webpack-ts-unconfigured/shims-vue.d.ts
system-tests/projects/vue3-webpack-ts-unconfigured/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-unconfigured/src/main.ts
system-tests/projects/vue3-webpack-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/angular-21/cypress.config.ts
system-tests/projects/angular-21/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-21/src/main.ts
system-tests/projects/angular-21/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-21/src/app/app.config.ts
system-tests/projects/angular-21/src/app/app.config.ts
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core' export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), ], }
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-21/src/app/app.component.ts
system-tests/projects/angular-21/src/app/app.component.ts
import { Component, signal } from '@angular/core' @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrl: './app.component.css', }) export class AppComponent { protected readonly title = signal('angular') }
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-21/src/app/mount.cy.ts
system-tests/projects/angular-21/src/app/mount.cy.ts
import { createOutputSpy } from 'cypress/angular-zoneless' import { EventEmitter, Component, NgModule } from '@angular/core' import type { InputSignal } from '@angular/core' import { TestBed } from '@angular/core/testing' import { ParentChildModule } from './components/legacy/modules/parent-child.module' import { Pare...
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-21/src/app/errors.cy.ts
system-tests/projects/angular-21/src/app/errors.cy.ts
import type { InputSignal } from '@angular/core' import { ErrorsComponent } from './components/errors' describe('Errors', () => { it('error on mount', () => { cy.mount(ErrorsComponent, { componentProperties: { throwError: true as unknown as InputSignal<boolean> } }) }) it('sync error', () => { cy.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/angular-21/src/app/app.component.cy.ts
system-tests/projects/angular-21/src/app/app.component.cy.ts
// Keep this test very simple as "@cypress/schematic" relies on it to run smoke tests import { AppComponent } from './app.component' it('should', () => { cy.mount(AppComponent) cy.get('h1').contains('Hello World', { timeout: 250 }) })
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-21/src/app/components/signals.component.ts
system-tests/projects/angular-21/src/app/components/signals.component.ts
import { Component, signal } from '@angular/core' @Component({ standalone: true, selector: 'app-signals', template: `<span>{{ count() }}</span> <button (click)="increment()">+</button>`, }) export class SignalsComponent { count = signal(0) increment (): void { this.count.update((_count: number) => _coun...
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-21/src/app/components/standalone.component.ts
system-tests/projects/angular-21/src/app/components/standalone.component.ts
import { Component, input } from '@angular/core' @Component({ standalone: true, selector: 'app-standalone', template: `<h1>Hello {{ name() }}</h1>`, }) export class StandaloneComponent { name = input<string>('') }
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-21/src/app/components/lifecycle.component.ts
system-tests/projects/angular-21/src/app/components/lifecycle.component.ts
import { Component, input, OnInit, OnChanges, SimpleChanges } from '@angular/core' @Component({ selector: 'app-lifecycle', standalone: false, template: `<p>Hi {{ name() }}. ngOnInit fired: {{ ngOnInitFired }} and ngOnChanges fired: {{ ngOnChangesFired }} and conditionalName: {{ conditionalName }}</p>`, }) 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/angular-21/src/app/components/errors.ts
system-tests/projects/angular-21/src/app/components/errors.ts
import { Component, effect, input } from '@angular/core' @Component({ selector: 'errors-component', template: `<div> <button id="sync-error" (click)="syncError()">Sync Error</button> <button id="async-error" (click)="asyncError()">Sync Error</button> </div>`, }) export class ErrorsComponent { throwError = ...
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-21/src/app/components/standalone.component.cy.ts
system-tests/projects/angular-21/src/app/components/standalone.component.cy.ts
import type { InputSignal } from '@angular/core' import { StandaloneComponent } from './standalone.component' describe('StandaloneComponent', () => { it('can mount a standalone component', () => { cy.mount(StandaloneComponent, { componentProperties: { name: 'Angular' as unknown as InputSignal<strin...
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-21/src/app/components/url-image.component.ts
system-tests/projects/angular-21/src/app/components/url-image.component.ts
import { Component } from '@angular/core' @Component({ selector: 'app-url-image', template: `<div class="test-img"></div>`, styleUrl: './url-image.component.css', }) export class UrlImageComponent {}
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-21/src/app/components/transient-services.component.ts
system-tests/projects/angular-21/src/app/components/transient-services.component.ts
import { Component, Injectable } from '@angular/core' @Injectable({ providedIn: 'root' }) export class TransientService { get message () { return 'Original Transient Service' } } @Injectable({ providedIn: 'root' }) class DirectService { constructor (private transientService: TransientService) { } get m...
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-21/src/app/components/logo.component.ts
system-tests/projects/angular-21/src/app/components/logo.component.ts
import { Component } from '@angular/core' @Component({ selector: 'app-logo', template: `<img src="assets/cypress-logo-light.png" />`, }) export class LogoComponent {}
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-21/src/app/components/signals.component.cy.ts
system-tests/projects/angular-21/src/app/components/signals.component.cy.ts
import { SignalsComponent } from './signals.component' describe('SignalsComponent', () => { it('can mount a signals component', () => { cy.mount(SignalsComponent) }) it('can increment the count using a signal', () => { cy.mount(SignalsComponent) cy.get('span').contains(0) cy.get('button').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/angular-21/src/app/components/cart.component.ts
system-tests/projects/angular-21/src/app/components/cart.component.ts
import { Component, Injectable } from '@angular/core' @Injectable({ providedIn: 'root' }) export class Cart { #items: string[] = [] add (product: string) { this.#items.push(product) } getItems () { return this.#items } } @Component({ template: `<div><h2>Great Product</h2><button (click)="buy()" ...
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-21/src/app/components/counter.component.ts
system-tests/projects/angular-21/src/app/components/counter.component.ts
import { Component, model } from '@angular/core' @Component({ selector: 'counter-component', standalone: false, template: `<button (click)="increment()"> Increment: {{ count() }} </button>`, }) export class CounterComponent { count = model<number>(0) increment () { this.count.set(this.count() + 1)...
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-21/src/app/components/legacy/button-output.component.ts
system-tests/projects/angular-21/src/app/components/legacy/button-output.component.ts
import { Component, EventEmitter, Output } from '@angular/core' @Component({ selector: 'app-button-output', standalone: false, template: `<button (click)="clicked.emit(true)">Click Me</button>`, }) export class ButtonOutputComponent { // Used to test legacy @Output() decorators @Output() clicked: EventEmitte...
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-21/src/app/components/legacy/projection.component.ts
system-tests/projects/angular-21/src/app/components/legacy/projection.component.ts
import { Component } from '@angular/core' @Component({ selector: 'app-projection', template: `<h3><ng-content></ng-content></h3>`, standalone: false, }) export class ProjectionComponent {}
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-21/src/app/components/legacy/with-directives.component.ts
system-tests/projects/angular-21/src/app/components/legacy/with-directives.component.ts
import { Component } from '@angular/core' @Component({ selector: 'with-directives-component', standalone: false, template: ` <button (click)="show = !show">Toggle Message</button> <ul *ngIf="show"> <li *ngFor="let item of items">{{ item }}</li> </ul>`, }) export class WithDirectivesComponent { sh...
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-21/src/app/components/legacy/providers/child-providers.service.ts
system-tests/projects/angular-21/src/app/components/legacy/providers/child-providers.service.ts
import { Injectable } from '@angular/core' @Injectable({ providedIn: 'root', }) export class ChildProvidersService { async getMessage (): Promise<string> { const response = await fetch('https://myfakeapiurl.com/api/message') const data = await response.json() return data.message } }
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-21/src/app/components/legacy/providers/another-child-providers.component.ts
system-tests/projects/angular-21/src/app/components/legacy/providers/another-child-providers.component.ts
import { Component, signal } from '@angular/core' import { ChildProvidersService } from './child-providers.service' @Component({ standalone: false, selector: 'app-another-child', template: `<button (click)="handleClick()">{{ message() }}</button>`, providers: [ChildProvidersService], }) export class AnotherChi...
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-21/src/app/components/legacy/providers/parent-providers.component.ts
system-tests/projects/angular-21/src/app/components/legacy/providers/parent-providers.component.ts
import { Component } from '@angular/core' @Component({ standalone: false, // declare components in the template template: ` <app-child-providers></app-child-providers> <app-another-child></app-another-child>`, }) export class ParentProvidersComponent {}
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-21/src/app/components/legacy/providers/component-provider.component.ts
system-tests/projects/angular-21/src/app/components/legacy/providers/component-provider.component.ts
import { Component, Injectable } from '@angular/core' @Injectable({ providedIn: 'root' }) export class MessageService { get message () { return 'globally provided service' } } @Component({ template: `<p>{{messageService.message}}</p>`, providers: [{ provide: MessageService, useValue: { message: '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-21/src/app/components/legacy/providers/parent-providers.module.ts
system-tests/projects/angular-21/src/app/components/legacy/providers/parent-providers.module.ts
import { NgModule } from '@angular/core' import { ChildProvidersComponent } from './child-providers.component' import { AnotherChildProvidersComponent } from './another-child-providers.component' import { ParentProvidersComponent } from './parent-providers.component' @NgModule({ declarations: [ParentProvidersCompone...
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-21/src/app/components/legacy/providers/child-providers.component.ts
system-tests/projects/angular-21/src/app/components/legacy/providers/child-providers.component.ts
import { Component, signal } from '@angular/core' import { ChildProvidersService } from './child-providers.service' @Component({ selector: 'app-child-providers', standalone: false, template: `<button (click)="handleClick()">{{ message() }}</button>`, }) export class ChildProvidersComponent { message = signal('...
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-21/src/app/components/legacy/modules/parent-child.module.ts
system-tests/projects/angular-21/src/app/components/legacy/modules/parent-child.module.ts
import { NgModule } from '@angular/core' import { ParentComponent } from './parent.component' import { ChildComponent } from './child.component' // legacy modules, which are not default convention since Angular 19 @NgModule({ declarations: [ParentComponent, ChildComponent], }) export class ParentChildModule {}
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-21/src/app/components/legacy/modules/child.component.ts
system-tests/projects/angular-21/src/app/components/legacy/modules/child.component.ts
import { Component, Input } from '@angular/core' @Component({ selector: 'child-component', standalone: false, template: '<h1>{{msg}}</h1>', }) export class ChildComponent { // Used to test legacy @Input() decorators @Input() msg!: string }
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-21/src/app/components/legacy/modules/parent.component.ts
system-tests/projects/angular-21/src/app/components/legacy/modules/parent.component.ts
import { Component } from '@angular/core' @Component({ selector: 'parent-component', standalone: false, template: '<child-component [msg]="msg"></child-component>', }) export class ParentComponent { msg = 'Hello World from ParentComponent' }
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-21/cypress/support/component.ts
system-tests/projects/angular-21/cypress/support/component.ts
import { mount } from 'cypress/angular-zoneless' 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/next-15-tsconfig-tailwind/cypress.config.ts
system-tests/projects/next-15-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-15-tsconfig-tailwind/tailwind.config.ts
system-tests/projects/next-15-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-15-tsconfig-tailwind/next.config.ts
system-tests/projects/next-15-tsconfig-tailwind/next.config.ts
import type { NextConfig } from 'next' const nextConfig: NextConfig = { reactStrictMode: true, swcMinify: true, } 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-15-tsconfig-tailwind/app/layout.tsx
system-tests/projects/next-15-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-15-tsconfig-tailwind/app/page-styles.cy.tsx
system-tests/projects/next-15-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-15-tsconfig-tailwind/app/page.tsx
system-tests/projects/next-15-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-15-tsconfig-tailwind/app/page.cy.tsx
system-tests/projects/next-15-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-15-tsconfig-tailwind/cypress/support/component.ts
system-tests/projects/next-15-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/angular-19/cypress.config.ts
system-tests/projects/angular-19/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-18/cypress.config.ts
system-tests/projects/angular-18/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/dts-files-only/cypress/support/index.d.ts
system-tests/projects/dts-files-only/cypress/support/index.d.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/e2e/cypress/e2e/cy_origin_retries_runnable.cy.ts
system-tests/projects/e2e/cypress/e2e/cy_origin_retries_runnable.cy.ts
describe('cy.origin test retries passes runnable', () => { context('withBeforeEach', () => { beforeEach(() => { cy.visit('/primary_origin.html') cy.get('a[data-cy="cross_origin_secondary_link"]').click() }) it(`passes runnable state to the secondary origin first attempt`, { retries: 0 }, () =...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/typescript_passing.cy.ts
system-tests/projects/e2e/cypress/e2e/typescript_passing.cy.ts
// @ts-ignore import foo from '../../lib/foo' import bar from '../../lib/bar' import dom from '../../lib/dom' describe('imports work', () => { it('foo coffee', () => { // @ts-ignore expect(foo()).to.eq('foo') }) it('bar babel', () => { // @ts-ignore expect(bar()).to.eq('baz') }) it('dom jsx...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/cy_origin_retries.cy.ts
system-tests/projects/e2e/cypress/e2e/cy_origin_retries.cy.ts
describe('cy.origin test retries', () => { beforeEach(() => { cy.visit('/primary_origin.html') cy.get('a[data-cy="cross_origin_secondary_link"]').click() }) it('appropriately retries test within "cy.origin" without propagating other errors', function () { cy.origin('http://foobar.com:4466', () => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/typescript_syntax_error.cy.ts
system-tests/projects/e2e/cypress/e2e/typescript_syntax_error.cy.ts
// The code below is ignored by eslint // because it tests failing spec. describe('fail', -> )
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/fails_prior_to_top_change_retry_succeeds.cy.ts
system-tests/projects/e2e/cypress/e2e/fails_prior_to_top_change_retry_succeeds.cy.ts
describe('fails prior to top change', () => { let firstAttempt = true it('fails prior to top change', () => { const oldFirstAttempt = firstAttempt firstAttempt = false expect(oldFirstAttempt).to.be.false cy.visit('http://localhost:5353/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/e2e/cypress/e2e/electron_animation_bug.cy.ts
system-tests/projects/e2e/cypress/e2e/electron_animation_bug.cy.ts
describe('electron animation bug', () => { it('loads in less than .3 seconds', { defaultCommandTimeout: 750 }, () => { cy.visit('/electron_animation_bug.html') cy.get('#app').should('exist') cy.get('#remove').click() cy.get('#app').should('not.exist') }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/abort_beforeunload_event_child.cy.ts
system-tests/projects/e2e/cypress/e2e/abort_beforeunload_event_child.cy.ts
it('will exit even if an beforeload event dialog is present in a child window', function () { cy.window().invoke('open', '/blocking_beforeunload_event.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/e2e/cypress/e2e/abort_beforeunload_event.cy.ts
system-tests/projects/e2e/cypress/e2e/abort_beforeunload_event.cy.ts
it('will exit even if an beforeload event dialog is present', function () { cy.visit('/blocking_beforeunload_event.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/e2e/cypress/e2e/cy_origin_error.cy.ts
system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts
import { fail, verify } from '../support/util' describe('cy.origin errors', () => { beforeEach(() => { // @ts-ignore window.top.__cySkipValidateConfig = true // must be interactive or stack trace is handled differently for the sake // of how it prints to stdout Cypress.config('isInteractive', tru...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/form_action_with_allow_list_custom.cy.ts
system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/form_action_with_allow_list_custom.cy.ts
describe(`experimentalCspAllowList=['script-src-elem', 'script-src', 'default-src']`, () => { let visitUrl: URL const timeout = 1000 beforeEach(() => { visitUrl = new URL('http://localhost:4466/csp_script_test.html') }) it('fails on inline form action', { pageLoadTimeout: timeout, // @ts-expect-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/with_allow_list_custom_or_true.cy.ts
system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/with_allow_list_custom_or_true.cy.ts
describe('experimentalCspAllowList is custom or true', () => { let cspLogMessages = [] let visitUrl: URL let postMessageHandler = ({ data }) => { if (data.event === 'csp-script-ran') { cspLogMessages.push(data.data) } } beforeEach(() => { cspLogMessages = [] visitUrl = new URL('http://l...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/with_allow_list_custom.cy.ts
system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/with_allow_list_custom.cy.ts
describe(`experimentalCspAllowList=['script-src-elem', 'script-src', 'default-src']`, () => { let cspLogMessages = [] let visitUrl: URL let postMessageHandler = ({ data }) => { if (data.event === 'csp-script-ran') { cspLogMessages.push(data.data) } } beforeEach(() => { cspLogMessages = [] ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/with_allow_list_true.cy.ts
system-tests/projects/e2e/cypress/e2e/experimental_csp_allow_list_spec/with_allow_list_true.cy.ts
describe(`experimentalCspAllowList=true`, () => { let cspLogMessages = [] let visitUrl: URL let postMessageHandler = ({ data }) => { if (data.event === 'csp-script-ran') { cspLogMessages.push(data.data) } } beforeEach(() => { cspLogMessages = [] visitUrl = new URL('http://localhost:4466...
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-preprocessor-ts-loader-compiler-options/cypress/e2e/failing.cy.ts
system-tests/projects/webpack-preprocessor-ts-loader-compiler-options/cypress/e2e/failing.cy.ts
/// <reference types="cypress" /> /** * This tests the error UI for a certain webpack preprocessor setup. * It does this by having a test fail and then a subsequent test run that * verifies the appearance of the command log. */ // simple example of typescript types, present to assert that this is being interpreted...
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-configured/cypress.config.ts
system-tests/projects/svelte-vite-configured/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { framework: 'svelte', 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/svelte-vite-configured/vite.config.ts
system-tests/projects/svelte-vite-configured/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/angular-custom-config/cypress.config.ts
system-tests/projects/angular-custom-config/cypress.config.ts
import { defineConfig } from 'cypress' const { projects } = require('./angular.json') export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { framework: 'angular', bundler: 'webpack', options: { projectConfig: { root: projects['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-config/src/app/my-component.ts
system-tests/projects/angular-custom-config/src/app/my-component.ts
import { Component } from '@angular/core' @Component({ template: `<h1 class="very-red">Hello Angular</h1>`, }) export class 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-config/src/app/my-component.cy.ts
system-tests/projects/angular-custom-config/src/app/my-component.cy.ts
import { MyComponent } from './my-component' describe('MyComponent', () => { it('should mount with an h1 tag with a class of very-red', () => { cy.mount(MyComponent) // Proves out the Angular specific `projectConfig` option. The global styles in `custom-styles.scss` would not normally be applied with how thi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/downloads/cypress/e2e/download_csv.cy.ts
system-tests/projects/downloads/cypress/e2e/download_csv.cy.ts
/// <reference types="cypress" /> describe('downloads', () => { beforeEach(() => { cy.visit('/cypress/fixtures/downloads.html') }) it('downloads cvs file', () => { // Note that we don't wait for the download here. If we ever need to do a wait here to ensure that the download happens, // we need to m...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/downloads/cypress/e2e/downloads.cy.ts
system-tests/projects/downloads/cypress/e2e/downloads.cy.ts
/// <reference types="cypress" /> describe('downloads', () => { beforeEach(() => { cy.visit('/cypress/fixtures/downloads.html') }) it('handles csv file download', () => { cy.get('[data-cy=download-csv]').click() cy // Note that this timeout is less than the proxy correlation timeout. It needs to...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/downloads/cypress/e2e/simple_passing.cy.ts
system-tests/projects/downloads/cypress/e2e/simple_passing.cy.ts
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/svelte-webpack-configured/cypress.config.ts
system-tests/projects/svelte-webpack-configured/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, devServer: { framework: 'svelte', 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/svelte-webpack-configured/src/mount.cy.ts
system-tests/projects/svelte-webpack-configured/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/projects/svelte-webpack-configured/src/App.cy.ts
system-tests/projects/svelte-webpack-configured/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/projects/svelte-webpack-configured/src/main.ts
system-tests/projects/svelte-webpack-configured/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/projects/svelte-webpack-configured/src/vite-env.d.ts
system-tests/projects/svelte-webpack-configured/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/projects/svelte-webpack-configured/src/lib/errors.cy.ts
system-tests/projects/svelte-webpack-configured/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/projects/svelte-webpack-configured/src/lib/store.ts
system-tests/projects/svelte-webpack-configured/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/projects/svelte-webpack-configured/cypress/support/component.ts
system-tests/projects/svelte-webpack-configured/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/projects/ts-proj-ts-files-only/cypress/support/index.ts
system-tests/projects/ts-proj-ts-files-only/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-ts-files-only/cypress/integration/foo.spec.ts
system-tests/projects/ts-proj-ts-files-only/cypress/integration/foo.spec.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-ts-files-only/cypress/plugins/index.ts
system-tests/projects/ts-proj-ts-files-only/cypress/plugins/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-ts-files-only/cypress/component/foo.spec.tsx
system-tests/projects/ts-proj-ts-files-only/cypress/component/foo.spec.tsx
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/coffee-react-interop/cypress/e2e/typescript_passing.cy.ts
system-tests/projects/coffee-react-interop/cypress/e2e/typescript_passing.cy.ts
// @ts-ignore import foo from '../../lib/foo' import bar from '../../lib/bar' import dom from '../../lib/dom' describe('imports work', () => { it('foo coffee', () => { // @ts-ignore expect(foo()).to.eq('foo') }) it('bar babel', () => { // @ts-ignore expect(bar()).to.eq('baz') }) it('dom jsx...
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-preprocessor-ts-loader/cypress/e2e/failing.cy.ts
system-tests/projects/webpack-preprocessor-ts-loader/cypress/e2e/failing.cy.ts
/// <reference types="cypress" /> /** * This tests the error UI for a certain webpack preprocessor setup. * It does this by having a test fail and then a subsequent test run that * verifies the appearance of the command log. */ // simple example of typescript types, present to assert that this is being interpreted...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/yarn-v3.1.1-pnp/cypress.config.ts
system-tests/projects/yarn-v3.1.1-pnp/cypress.config.ts
import head from 'lodash/head' import { defineConfig } from 'cypress' export default defineConfig({ e2e: { supportFile: false, setupNodeEvents (on, config) { // make sure plugin can access dependencies head([1, 2, 3]) 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/yarn-v3.1.1-pnp/cypress/e2e/index.cy.ts
system-tests/projects/yarn-v3.1.1-pnp/cypress/e2e/index.cy.ts
import head from 'lodash/head' describe('yarn-v3.1.1-pnp', () => { it('can load package from pnp runtime', () => { expect(head([1, 2, 3])).to.equal(1) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/projects/missing-vite-config/cypress.config.ts
system-tests/projects/missing-vite-config/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ component: { experimentalSingleTabRunMode: true, supportFile: false, 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/no-specs-vue/cypress.config.ts
system-tests/projects/no-specs-vue/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/no-specs-vue/env.d.ts
system-tests/projects/no-specs-vue/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/no-specs-vue/cypress-custom-spec-pattern.config.ts
system-tests/projects/no-specs-vue/cypress-custom-spec-pattern.config.ts
module.exports = { component: { specPattern: 'src/specs-folder/*.cy.{ts,tsx}', 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/no-specs-vue/vite.config.ts
system-tests/projects/no-specs-vue/vite.config.ts
import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vite.dev/config/ export default defineConfig({ plugins: [ vue(), ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, })
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-vue/src/main.ts
system-tests/projects/no-specs-vue/src/main.ts
import './assets/main.css' 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/no-specs-vue/cypress/support/e2e.ts
system-tests/projects/no-specs-vue/cypress/support/e2e.ts
// *********************************************************** // This example support/index.js 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 // au...
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-vue/cypress/support/commands.ts
system-tests/projects/no-specs-vue/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/system-tests/projects/no-specs-vue/cypress/support/component.ts
system-tests/projects/no-specs-vue/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/ts-proj-esmoduleinterop-true/cypress.config.ts
system-tests/projects/ts-proj-esmoduleinterop-true/cypress.config.ts
import commonjsExports from './commonjs-export' if (commonjsExports.export1 !== 'export1' || commonjsExports.export2 !== 'export2') { throw new Error('Imported values do not match exported values') } 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-esmoduleinterop-true/cypress/e2e/passing.cy.ts
system-tests/projects/ts-proj-esmoduleinterop-true/cypress/e2e/passing.cy.ts
it('passes', () => { 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/angular-signals/cypress.config.ts
system-tests/projects/angular-signals/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ fixturesFolder: false, component: { experimentalSingleTabRunMode: true, devServer: { framework: 'angular', bundler: 'webpack', webpackConfig: { resolve: { alias: { '@angular/common/http': re...
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/polyfills.ts
system-tests/projects/angular-signals/src/polyfills.ts
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
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/main.ts
system-tests/projects/angular-signals/src/main.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/angular-signals/src/signals-inputs/signals.input.component.ts
system-tests/projects/angular-signals/src/signals-inputs/signals.input.component.ts
import { Component, EventEmitter, Output, output } from '@angular/core' import { CommonModule } from '@angular/common' @Component({ selector: 'signals-input-component', standalone: true, imports: [CommonModule], templateUrl: './signals.input.component.html', }) export class SignalsInputComponent { newOutput ...
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-inputs/signals.input.component.cy.ts
system-tests/projects/angular-signals/src/signals-inputs/signals.input.component.cy.ts
import { SignalsInputComponent } from './signals.input.component' import { createOutputSpy, mount } from 'cypress/angular' describe('with output spies', () => { // regression test for https://github.com/cypress-io/cypress/issues/32137 it('should emit events on button click', () => { mount(SignalsInputComponent...
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-optional/signals-optional.component.ts
system-tests/projects/angular-signals/src/signals-optional/signals-optional.component.ts
import { ChangeDetectionStrategy, Component, input, model, signal, } from '@angular/core' @Component({ selector: 'signals-optional-component', templateUrl: './signals-optional.component.html', styleUrls: ['./signals-optional.component.scss'], standalone: true, changeDetection: ChangeDetectionStrate...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false