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/cli/types/tests/cypress-tests.ts
cli/types/tests/cypress-tests.ts
namespace CypressLodashTests { Cypress._ // $ExpectType LoDashStatic Cypress._.each([1], (item) => { item // $ExpectType number }) } namespace CypressSinonTests { Cypress.sinon // $ExpectType SinonStatic const stub = cy.stub() stub(2, 'foo') expect(stub).to.have.been.calledWith(Cypress.sinon.match.n...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/types/tests/chainer-examples.ts
cli/types/tests/chainer-examples.ts
cy.wrap('foo').should('be.a', 'string') cy.wrap('foobar').should('have.string', 'bar') cy.wrap(6).should('be.above', 5) cy.wrap({ foo: 'bar' }).should('be.an', 'object') cy.wrap(6).should('be.at.least', 5) cy.wrap(4).should('be.below', 5) function argsTest() { cy.wrap(arguments).should('be.arguments') } cy.wra...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/types/tests/net-stubbing-tests.ts
cli/types/tests/net-stubbing-tests.ts
import { CyHttpMessages, HttpRequestInterceptor, HttpResponseInterceptor, Interception, Route, RouteHandler, RouteHandlerController, RouteMap, RouteMatcher, StringMatcher } from 'cypress/types/net-stubbing' interface CustomRequest { payload: object } interface CustomResponse { data: object } ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/types/tests/cypress-npm-api-test.ts
cli/types/tests/cypress-npm-api-test.ts
// type tests for Cypress NPM module // https://on.cypress.io/module-api import cypress, { defineComponentFramework, defineConfig } from 'cypress' cypress.run // $ExpectType (options?: Partial<CypressRunOptions> | undefined) => Promise<CypressRunResult | CypressFailedRunResult> cypress.open // $ExpectType (options?: P...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/types/tests/plugins-config.ts
cli/types/tests/plugins-config.ts
// checking types passed through setupNodeEvents // does nothing const pluginConfig: Cypress.PluginConfig = (on, config) => {} // allows synchronous returns const pluginConfig2: Cypress.PluginConfig = (on, config) => { config // $ExpectType PluginConfigOptions config.configFile // $ExpectType string config.fixt...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/cypress.ts
cli/lib/cypress.ts
// https://github.com/cypress-io/cypress/issues/316 import tmp from 'tmp' import fs from 'fs-extra' import openModule from './exec/open' import runModule from './exec/run' import util from './util' import cli from './cli' const cypressModuleApi = { /** * Opens Cypress GUI * @see https://on.cypress.io/module-ap...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/errors.ts
cli/lib/errors.ts
import chalk from 'chalk' import { stripIndent, stripIndents } from 'common-tags' import _ from 'lodash' import assert from 'assert' import util from './util' import state from './tasks/state' const docsUrl = 'https://on.cypress.io' const requiredDependenciesUrl = `${docsUrl}/required-dependencies` const runDocumentat...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/util.ts
cli/lib/util.ts
import _ from 'lodash' import assert from 'assert' import arch from 'arch' import os from 'os' import ospath from 'ospath' import hasha from 'hasha' import tty from 'tty' import path from 'path' import { isCI as isCi } from 'ci-info' import execa from 'execa' import si from 'systeminformation' import chalk from 'chalk'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/cli.ts
cli/lib/cli.ts
// @ts-check import _ from 'lodash' import commander from 'commander' import { stripIndent } from 'common-tags' import logSymbols from 'log-symbols' import Debug from 'debug' import util from './util' import logger from './logger' import { exitWithError, errors } from './errors' import cache from './tasks/cache' impor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/logger.ts
cli/lib/logger.ts
import chalk from 'chalk' let logs: string[] = [] const logLevel = (): string => { return (process.env.npm_config_loglevel || 'notice') } const error = (...messages: any[]): void => { logs.push(messages.join(' ')) console.log(chalk.red(...messages)) // eslint-disable-line no-console } const warn = (...message...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/index.ts
cli/lib/index.ts
import minimist from 'minimist' import debug from 'debug' import util from './util' import CLI from './cypress' import installModule from './tasks/install' import { start as verifyStart } from './tasks/verify' const debugCli = debug('cypress:cli') const args: any = minimist(process.argv.slice(2)) // we're being used ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/VerboseRenderer.ts
cli/lib/VerboseRenderer.ts
// Vendored from @cypress/listr-verbose-renderer import figures from 'figures' import cliCursor from 'cli-cursor' import chalk from 'chalk' import dayjs from 'dayjs' const formattedLog = (options: any, output: string): void => { const timestamp = dayjs().format(options.dateFormat) // eslint-disable-next-line no-c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/download.ts
cli/lib/tasks/download.ts
import os from 'os' import assert from 'assert' import _ from 'lodash' import url from 'url' import path from 'path' import Debug from 'debug' import request from '@cypress/request' import Bluebird from 'bluebird' import requestProgress from 'request-progress' import { stripIndent } from 'common-tags' import { getProxy...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/install.ts
cli/lib/tasks/install.ts
import _ from 'lodash' import os from 'os' import path from 'path' import chalk from 'chalk' import Debug from 'debug' import { Listr } from 'listr2' import logSymbols from 'log-symbols' import { stripIndent } from 'common-tags' import timers from 'timers/promises' import fs from 'fs-extra' import download from './dow...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/verify.ts
cli/lib/tasks/verify.ts
import _ from 'lodash' import chalk from 'chalk' import { Listr } from 'listr2' import Debug from 'debug' import { stripIndent } from 'common-tags' import Bluebird from 'bluebird' import logSymbols from 'log-symbols' import path from 'path' import os from 'os' import verbose from '../VerboseRenderer' import { throwForm...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/unzip.ts
cli/lib/tasks/unzip.ts
import _ from 'lodash' import cp from 'child_process' import os from 'os' import yauzl from 'yauzl' import Debug from 'debug' import extract from 'extract-zip' import readline from 'readline' import fs from 'fs-extra' import { throwFormErrorText, errors } from '../errors' import util from '../util' import assert from '...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/cache.ts
cli/lib/tasks/cache.ts
import state from './state' import logger from '../logger' import fs from 'fs-extra' import util from '../util' import { join } from 'path' import Table from 'cli-table3' import dayjs from 'dayjs' import relativeTime from 'dayjs/plugin/relativeTime' import chalk from 'chalk' import _ from 'lodash' import getFolderSize...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/get-folder-size.ts
cli/lib/tasks/get-folder-size.ts
import fs from 'fs-extra' import { join } from 'path' import Bluebird from 'bluebird' /** * Get the size of a folder or a file. * * This function returns the actual file size of the folder (size), not the allocated space on disk (size on disk). * For more details between the difference, check this link: * https:/...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/tasks/state.ts
cli/lib/tasks/state.ts
import _ from 'lodash' import os from 'os' import path from 'path' import untildify from 'untildify' import Debug from 'debug' import { cwd } from 'process' import fs from 'fs-extra' import util from '../util' const debug = Debug('cypress:cli') const getPlatformExecutable = (): string => { const platform = os.platf...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/versions.ts
cli/lib/exec/versions.ts
import Debug from 'debug' import path from 'path' import util from '../util' import state from '../tasks/state' import { throwFormErrorText, errors } from '../errors' const debug = Debug('cypress:cli') const getBinaryDirectory = async (): Promise<string> => { if (util.getEnv('CYPRESS_RUN_BINARY')) { let envBina...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/open.ts
cli/lib/exec/open.ts
import Debug from 'debug' import util from '../util' import { start as spawnStart } from './spawn' import { start as verifyStart } from '../tasks/verify' import { processTestingType, checkConfigFile } from './shared' import { exitWithError } from '../errors' const debug = Debug('cypress:cli') /** * Maps options coll...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/spawn.ts
cli/lib/exec/spawn.ts
import _ from 'lodash' import os from 'os' import cp from 'child_process' import path from 'path' import Debug from 'debug' import util from '../util' import state from '../tasks/state' import xvfb from './xvfb' import { needsSandbox } from '../tasks/verify' import { throwFormErrorText, getError, errors } from '../erro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/run.ts
cli/lib/exec/run.ts
import _ from 'lodash' import Debug from 'debug' import util from '../util' import { start as spawnStart } from './spawn' import { start } from '../tasks/verify' import { exitWithError, errors } from '../errors' import { processTestingType, throwInvalidOptionError, checkConfigFile } from './shared' const debug = Debug...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/xvfb.ts
cli/lib/exec/xvfb.ts
import os from 'os' import Bluebird from 'bluebird' import Xvfb from '@cypress/xvfb' import { stripIndent } from 'common-tags' import Debug from 'debug' import { throwFormErrorText, errors } from '../errors' import util from '../util' const debug: any = Debug('cypress:cli') const debugXvfb: any = Debug('cypress:xvfb')...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/info.ts
cli/lib/exec/info.ts
/* eslint-disable no-console */ import { start as spawnStart } from './spawn' import util from '../util' import state from '../tasks/state' import os from 'os' import chalk from 'chalk' import prettyBytes from 'pretty-bytes' import _ from 'lodash' // color for numbers and show values const g = chalk.green // color for...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/exec/shared.ts
cli/lib/exec/shared.ts
import { errors } from '../errors' /** * Throws an error with "details" property from * "errors" object. * @param {Object} details - Error details */ export const throwInvalidOptionError = (details?: any): never => { if (!details) { details = errors.unknownError } // throw this error synchronously, it w...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/cli/lib/bin/cypress.ts
cli/lib/bin/cypress.ts
#!/usr/bin/env node // declared here in order to avoid consumers who are looking for the binary to be available relative to the dist directory import '../../bin/cypress'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/angular/src/mount.ts
npm/angular/src/mount.ts
import 'zone.js' /** * @hack fixes "Mocha has already been patched with Zone" error. */ // @ts-ignore window.Mocha['__zone_patch__'] = false import 'zone.js/testing' import { CommonModule } from '@angular/common' import { Component, ErrorHandler, EventEmitter, Injectable, SimpleChange, SimpleChanges, Type, OnChange...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/angular/src/index.ts
npm/angular/src/index.ts
export * from './mount'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/cypress.config.ts
npm/vue/cypress.config.ts
import { defineConfig } from 'cypress' export default defineConfig({ 'viewportWidth': 500, 'viewportHeight': 500, 'responseTimeout': 2500, 'projectId': '134ej7', 'e2e': { 'supportFile': false, }, 'component': { experimentalSingleTabRunMode: true, excludeSpecPattern: 'examples/**/*', devSe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/vite.config.ts
npm/vue/vite.config.ts
// This Vite config is only used for testing, not building! // For building this package, check out rollup.config.ts import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/src/shims-vue.d.ts
npm/vue/src/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/npm/vue/src/index.ts
npm/vue/src/index.ts
/* eslint-disable no-redeclare */ /// <reference types="cypress" /> import type { ComponentPublicInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ExtractDefaultPropTypes, DefineComponent, FunctionalComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/cypress/component/basic/hello/Hello.cy.ts
npm/vue/cypress/component/basic/hello/Hello.cy.ts
import Hello from './Hello.vue' import { mount } from '@cypress/vue' describe('Hello', () => { it('shows error for short text', () => { cy.viewport(300, 200) mount(Hello) // use the component like a real user cy.get('[data-cy=username]').type('abc') cy.contains('.error', 'enter a longer username'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/cypress/component/basic/props/message-list.cy.ts
npm/vue/cypress/component/basic/props/message-list.cy.ts
/// <reference types="cypress" /> import MessageList from '../MessageList.vue' import { mount } from '@cypress/vue' // common utils for MessageList const getItems = () => cy.get('ul li') describe('Props', () => { context('Set props when mounting', () => { it('has props', () => { const messages = ['one 🍎'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/cypress/component/setup/HelloWorld.cy.ts
npm/vue/cypress/component/setup/HelloWorld.cy.ts
import { h } from 'vue' import { mount } from '@cypress/vue' import HelloWorld from './HelloWorld.vue' describe('HelloWorld', () => { it('normal mount', () => { mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) }) it('functional mount', () => { mount(() => h(HelloWorld, { msg: 'Hello Cypress' })) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/cypress/component/test-utils-api/TestUtilsApi.cy.ts
npm/vue/cypress/component/test-utils-api/TestUtilsApi.cy.ts
import { VueTestUtils, mount } from 'cypress/vue' import { h } from 'vue' import TestUtilsApi from './TestUtilsApi.vue' const greeting = 'This is a globally registered component!' describe('VueTestUtils API', () => { before(() => { VueTestUtils.config.global.components = { 'globally-registered-component':...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/test-tsd/mount-test.ts
npm/vue/test-tsd/mount-test.ts
import { expectType } from './index' import { mount, VueTestUtils } from '../dist' import * as VTU from '@vue/test-utils' import { defineComponent } from 'vue' const App = defineComponent({ template: `<div />`, }) // Returns Chainable - not the `mount` function from @vue/test-utils expectType<Cypress.Chainable>( ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/test-tsd/test.ts
npm/vue/test-tsd/test.ts
import { mount } from '../dist' import Slots from './Slots.vue' mount(Slots)
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vue/test-tsd/shims-vue.d.ts
npm/vue/test-tsd/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/npm/vue/test-tsd/index.d.ts
npm/vue/test-tsd/index.d.ts
export function expectType<T>(value: T): void export function expectError<T>(value: T): void export function expectAssignable<T, T2 extends T = T>(value: T2): void
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/vitest.config.ts
npm/vite-dev-server/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/cypress.config.ts
npm/vite-dev-server/cypress.config.ts
import { defineConfig } from 'cypress' import { e2ePluginSetup } from '@packages/frontend-shared/cypress/e2e/e2ePluginSetup' export default defineConfig({ projectId: 'ypt4pf', e2e: { defaultCommandTimeout: 10000, // these take a bit longer b/c they're e2e open mode test async setupNodeEvents (on, config) {...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/index.d.ts
npm/vite-dev-server/index.d.ts
export * from "./dist"
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/resolveConfig.ts
npm/vite-dev-server/src/resolveConfig.ts
/** * The logic inside of this file is heavily reused from * Vitest's own config resolution logic. * You can find it here https://github.com/vitest-dev/vitest/blob/main/packages/vitest/src/node/create.ts */ import debugFn from 'debug' import type { InlineConfig } from 'vite-7' import path from 'path' import { creat...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/getVite.ts
npm/vite-dev-server/src/getVite.ts
import debugFn from 'debug' import { createRequire } from 'module' import path from 'path' import os from 'os' import type { ViteDevServerConfig } from './devServer.js' import majorVersion from 'semver/functions/major.js' const debug = debugFn('cypress:vite-dev-server:getVite') export type Vite = typeof import('vite-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/constants.ts
npm/vite-dev-server/src/constants.ts
export const configFiles = [ 'vite.config.ts', 'vite.config.js', 'vite.config.mjs', 'vite.config.cjs', 'vite.config.mts', 'vite.config.cts', ]
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/index.ts
npm/vite-dev-server/src/index.ts
import { devServer } from './devServer.js' export { devServer } export default { devServer }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/devServer.ts
npm/vite-dev-server/src/devServer.ts
import debugFn from 'debug' import semverMajor from 'semver/functions/major.js' import type { UserConfig } from 'vite-7' import { getVite, Vite } from './getVite.js' import { createViteDevServerConfig } from './resolveConfig.js' const debug = debugFn('cypress:vite-dev-server:devServer') const ALL_FRAMEWORKS = ['react...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/plugins/cypress.ts
npm/vite-dev-server/src/plugins/cypress.ts
import debugFn from 'debug' import type { ModuleNode, PluginOption, ViteDevServer } from 'vite-7' import type { Vite } from '../getVite.js' import { parse, HTMLElement } from 'node-html-parser' import fs from 'fs' import type { ViteDevServerConfig } from '../devServer.js' import path from 'path' import { fileURLToPath...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/plugins/sourcemap.ts
npm/vite-dev-server/src/plugins/sourcemap.ts
import debugFn from 'debug' import type { PluginOption } from 'vite-7' import type { Vite } from '../getVite.js' import type { ViteDevServerConfig } from '../devServer.js' const debug = debugFn('cypress:vite-dev-server:plugins:sourcemap') export const CypressSourcemap = ( options: ViteDevServerConfig, vite: Vite...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/src/plugins/index.ts
npm/vite-dev-server/src/plugins/index.ts
export * from './cypress.js' export * from './sourcemap.js'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/test/initCypressTests.spec.ts
npm/vite-dev-server/test/initCypressTests.spec.ts
import { vi, describe, it, beforeEach, afterEach, expect } from 'vitest' describe('initCypressTests', () => { let mockSupportFile: string | undefined // relative "/cypress/support/component.js" let mockProjectRoot: string | undefined = '' let mockPlatform: 'darwin' | 'win32' | 'linux' = 'linux' let mockDevSe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/test/resolveConfig.spec.ts
npm/vite-dev-server/test/resolveConfig.spec.ts
import { vi, describe, it, beforeEach, expect } from 'vitest' import { EventEmitter } from 'events' import * as vite5 from 'vite-5' import * as vite6 from 'vite-6' import * as vite7 from 'vite-7' import { scaffoldSystemTestProject } from './test-helpers/scaffoldProject' import { createViteDevServerConfig } from '../src...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/test/getVite.spec.ts
npm/vite-dev-server/test/getVite.spec.ts
import { vi, describe, it, beforeEach, afterEach, expect } from 'vitest' import { getVite } from '../src/getVite' const osMocks = vi.hoisted(() => { return { platform: vi.fn(), } }) describe('getVite', () => { beforeEach(() => { // see details on https://vitest.dev/api/vi.html#vi-mock as vi.mock is hois...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/test/test-helpers/scaffoldProject.ts
npm/vite-dev-server/test/test-helpers/scaffoldProject.ts
import Fixtures, { ProjectFixtureDir } from '@tooling/system-tests' import * as FixturesScaffold from '@tooling/system-tests/lib/dep-installer' export async function scaffoldSystemTestProject (project: ProjectFixtureDir) { Fixtures.removeProject(project) await Fixtures.scaffoldProject(project) await FixturesSc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/test/plugins/sourcemap.spec.ts
npm/vite-dev-server/test/plugins/sourcemap.spec.ts
import { vi, describe, it, expect } from 'vitest' import { Plugin } from 'vite-5' import { ViteDevServerConfig } from '../../src/devServer' import { Vite } from '../../src/getVite' import { CypressSourcemap } from '../../src/plugins' describe('sourcemap plugin', () => { ['js', 'jsx', 'ts', 'tsx', 'vue', 'svelte', '...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/cypress/support/e2e.ts
npm/vite-dev-server/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/npm/vite-dev-server/cypress/support/commands.ts
npm/vite-dev-server/cypress/support/commands.ts
/// <reference types="cypress" /> declare global { namespace Cypress { interface Chainable { /** * Adapter to wait for a spec to finish in a standard way. It * * 1. Waits for the stats to reset which signifies that the test page has loaded * 2. Waits for 'Your tests are loading....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/cypress/e2e/react.cy.ts
npm/vite-dev-server/cypress/e2e/react.cy.ts
/// <reference path="../support/e2e.ts" /> import type { fixtureDirs } from '@tooling/system-tests' import dedent from 'dedent' type ProjectDirs = typeof fixtureDirs // These versions should reflect the latest versions of each major version of Vite - update as needed const VITE_REACT: ProjectDirs[number][] = ['vite5....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/vite-dev-server/cypress/e2e/vite-dev-server.cy.ts
npm/vite-dev-server/cypress/e2e/vite-dev-server.cy.ts
/// <reference path="../support/e2e.ts" /> import dedent from 'dedent' describe('Config options', () => { it('works with tailwind', () => { cy.scaffoldProject('tailwind-vite') cy.openProject('tailwind-vite', ['--component']) cy.startAppServer('component') cy.visitApp() cy.specsPageIsVisible() ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/eslint.config.ts
npm/grep/eslint.config.ts
import { baseConfig, cliOverrides } from '@packages/eslint-config' export default [ ...baseConfig, ...cliOverrides, { files: ['**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx'], rules: { 'no-restricted-syntax': 'off', 'mocha/no-global-tests': 'off', }, languageOptions: { parserOption...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/vitest.config.ts
npm/grep/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress.config.ts
npm/grep/cypress.config.ts
import { defineConfig } from 'cypress' import { plugin as cypressGrepPlugin } from './src/plugin' import assert from 'node:assert' import path from 'path' import fs from 'fs' import _ from 'lodash' import debug from 'debug' const debugInstance = debug('cypress:grep:compare-results') export default defineConfig({ e2...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/src/utils.ts
npm/grep/src/utils.ts
interface TitleGrep { title: string invert: boolean } interface TagGrep { tag: string invert: boolean } export const parseTitleGrep = (s: string): TitleGrep | null => { if (!s || typeof s !== 'string') { return null } s = s.trim() if (s.startsWith('-')) { return { title: s.substring(1),...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/src/register.ts
npm/grep/src/register.ts
/// <reference types="cypress" /> import { parseGrep, shouldTestRun } from './utils' import { version } from '../package.json' import debug from 'debug' // @ts-ignore const debugInstance = debug('@cypress/grep') debugInstance.log = console.info.bind(console) interface SuiteStackItem { name: string tags?: string[]...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/src/plugin.ts
npm/grep/src/plugin.ts
import debugModule from 'debug' import { sync as globbySync } from 'globby' import { getTestNames } from 'find-test-names' import { readFileSync } from 'fs' import { version } from '../package.json' import { parseGrep, shouldTestRun } from './utils' const debug = debugModule('@cypress/grep') interface CypressConfigOpt...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/src/index.ts
npm/grep/src/index.ts
import { register } from './register' // NOTE: we cannot import the plugin here because it is designed to run in the node context. // when we import the register function, it will then also import the plugin references which will fail in the browser. declare global { namespace Cypress { interface SuiteConfigOverr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/test/unit.spec.ts
npm/grep/test/unit.spec.ts
import { expect, describe, it } from 'vitest' import { parseGrep, parseTitleGrep, parseFullTitleGrep, parseTagsGrep, shouldTestRun, shouldTestRunTags, shouldTestRunTitle, } from '../src/utils' import { plugin } from '../src/plugin' describe('utils', () => { describe('parseTitleGrep', () => { it('gr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/support/e2e.ts
npm/grep/cypress/support/e2e.ts
// @ts-check /// <reference types="cypress" /> import { register } from '../../src/index' // register the grep feature // https://github.com/cypress-io/cypress-grep register()
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/skip.cy.ts
npm/grep/cypress/e2e/skip.cy.ts
describe('tests that use .skip', () => { // use a template literal it(`works`, () => {}) // NOTE: This test is pending for demonstration it.skip('is pending', () => {}) // NOTE: This test is also pending for demonstration it.skip('is pending again', () => {}) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/describe-tags.cy.ts
npm/grep/cypress/e2e/describe-tags.cy.ts
describe('block with no tags', () => { it('inside describe 1', () => {}) it('inside describe 2', () => {}) }) describe('block with tag smoke', { tags: '@smoke' }, () => { it('inside describe 3', () => {}) it('inside describe 4', () => {}) }) describe('block without any tags', () => { // note the parent su...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/this.cy.ts
npm/grep/cypress/e2e/this.cy.ts
describe('this context', () => { beforeEach(() => { cy.wrap(42).as('life') }) it('preserves the test context', function () { expect(this).to.be.an('object') expect(this.life).to.equal(42) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/omit-and-skip.cy.ts
npm/grep/cypress/e2e/omit-and-skip.cy.ts
describe('Page', () => { describe('List', { tags: ['@us1'] }, () => { // NOTE: This test is skipped for demonstration purposes it.skip('first test', () => {}) it('second test', () => {}) it('third test', () => {}) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/each.cy.ts
npm/grep/cypress/e2e/each.cy.ts
// https://github.com/bahmutov/cypress-each import 'cypress-each' describe('tests that use .each work', () => { // creating tests dynamically works with "cypress-grep" it.each([1, 2, 3])('test for %d', (x) => { expect(x).to.be.oneOf([1, 2, 3]) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/config-tags.cy.ts
npm/grep/cypress/e2e/config-tags.cy.ts
describe('tags in the config object', () => { it('works as an array', { tags: ['config', 'some-other-tag'] }, () => { expect(true).to.be.true }) it('works as a string', { tags: 'config' }, () => { expect(true).to.be.true }) it('does not use tags', () => { // so it fails expect(true).to.be.fa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/nested-describe.cy.ts
npm/grep/cypress/e2e/nested-describe.cy.ts
describe('grand', () => { context('outer', { tags: '@smoke' }, () => { describe('inner', () => { it('runs', () => {}) }) }) }) describe('top', { tags: '@smoke' }, () => { describe('middle', () => { context('bottom', { tags: ['@integration', '@fast'] }, () => { it('runs too', () => {}) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/inherits-tag.cy.ts
npm/grep/cypress/e2e/inherits-tag.cy.ts
describe('Screen A', { tags: ['@sanity', '@screen-a'] }, () => { it('loads', { tags: ['@screen-b'] }, () => { // do something that eventually sends the page to screen b. }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/config.cy.ts
npm/grep/cypress/e2e/config.cy.ts
describe('tests that use config object', () => { it('still works @config', { baseUrl: 'http://localhost:8000' }, () => { expect(Cypress.config('baseUrl')).to.equal('http://localhost:8000') }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/burn.cy.ts
npm/grep/cypress/e2e/burn.cy.ts
// if we specify just the burn parameter // then this test will be repeated N times describe('burning a test N times', () => { it('repeats', () => {}) it('second test', () => {}) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/spec.cy.ts
npm/grep/cypress/e2e/spec.cy.ts
it('hello world', () => {}) it('works', () => {}) it('works 2 @tag1', { tags: '@tag1' }, () => {}) it('works 2 @tag1 @tag2', { tags: ['@tag1', '@tag2'] }, () => {}) it('works @tag2', { tags: '@tag2' }, () => {})
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/multiple-registrations.cy.ts
npm/grep/cypress/e2e/multiple-registrations.cy.ts
// register the plugin multiple times // to simulate including from support and spec files // https://github.com/cypress-io/cypress-grep/issues/59 const { register } = require('../../src/register') register() register() register() it('hello world', () => {})
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/grep-task.cy.ts
npm/grep/cypress/e2e/grep-task.cy.ts
describe('plugin', () => { describe('excludeSpecPattern', () => { it('supports an array value', () => { cy.task('grep', { excludeSpecPattern: ['**/test2.cy.ts', '**/test3.cy.ts'], specPattern: '**/*.cy.ts', env: { grepTags: 'smoke', grepFilterSpecs: true, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/specify.cy.ts
npm/grep/cypress/e2e/specify.cy.ts
// specify is the same as it() specify('hello world', () => {}) specify('works', () => {}) specify('works 2 @tag1', { tags: '@tag1' }, () => {}) specify('works 2 @tag1 @tag2', { tags: ['@tag1', '@tag2'] }, () => {}) specify('works @tag2', { tags: '@tag2' }, () => {})
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/before.cy.ts
npm/grep/cypress/e2e/before.cy.ts
describe('Runs before and beforeEach when first test is skipped', () => { let count = 0 before(() => { count++ }) beforeEach(() => { count++ }) it('A', { tags: ['@core'] }, () => {}) it('B', { tags: ['@core', '@staging'] }, () => { expect(count).to.equal(2) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/grep/cypress/e2e/tags/test2.cy.ts
npm/grep/cypress/e2e/tags/test2.cy.ts
it('Test 2', { tags: ['high', 'smoke'] }, () => { 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/npm/grep/cypress/e2e/tags/test1.cy.ts
npm/grep/cypress/e2e/tags/test1.cy.ts
it('Test 1', { tags: ['smoke', 'regression'] }, () => { 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/npm/grep/cypress/e2e/tags/test3.cy.ts
npm/grep/cypress/e2e/tags/test3.cy.ts
it('Test 3', { tags: ['smoke'] }, () => { 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/npm/eslint-plugin-dev/vitest.config.ts
npm/eslint-plugin-dev/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/eslint-plugin-dev/test/no-return-before.spec.ts
npm/eslint-plugin-dev/test/no-return-before.spec.ts
import { describe, it, expect } from 'vitest' import path from 'path' import eslint from 'eslint' import plugin from '../lib' import _ from 'lodash' import { stripIndent } from 'common-tags' const ruleName = 'no-return-before' const pluginName = '__plugin__' const ESLint = eslint.ESLint async function execute (file, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/eslint-plugin-dev/test/no-only.spec.ts
npm/eslint-plugin-dev/test/no-only.spec.ts
import { describe, it, expect } from 'vitest' import path from 'path' import eslint from 'eslint' import plugin from '../lib' import _ from 'lodash' const ruleName = 'no-only' const pluginName = '__plugin__' const ESLint = eslint.ESLint async function execute (file, options = {}) { const defaultConfig = { fix: ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/eslint-plugin-dev/test/skip-comment.spec.ts
npm/eslint-plugin-dev/test/skip-comment.spec.ts
import { describe, it, expect } from 'vitest' import path from 'path' import eslint from 'eslint' import _ from 'lodash' const plugin = require('../lib') const ruleName = 'skip-comment' const pluginName = '__plugin__' const ESLint = eslint.ESLint async function execute (file, options = {}) { const defaultConfig =...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/eslint-plugin-dev/test/arrow-body-multiline-braces.spec.ts
npm/eslint-plugin-dev/test/arrow-body-multiline-braces.spec.ts
import { describe, it, expect } from 'vitest' import path from 'path' import eslint from 'eslint' import plugin from '../lib' import _ from 'lodash' const pluginName = '__plugin__' const ESLint = eslint.ESLint async function execute (file, options = {}) { const defaultConfig = { fix: true, ignore: false, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/mount-utils/eslint.config.ts
npm/mount-utils/eslint.config.ts
import { baseConfig } from '@packages/eslint-config' export default [ ...baseConfig, ]
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/mount-utils/src/index.ts
npm/mount-utils/src/index.ts
export const ROOT_SELECTOR = '[data-cy-root]' /** * Gets the root element used to mount the component. * @returns {HTMLElement} The root element * @throws {Error} If the root element is not found */ export const getContainerEl = (): HTMLElement => { const el = document.querySelector<HTMLElement>(ROOT_SELECTOR) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/puppeteer/eslint.config.ts
npm/puppeteer/eslint.config.ts
import { baseConfig } from '@packages/eslint-config' const allowDefaultProject = ['cypress.config.ts', 'eslint.config.ts', 'support/index.js', 'vitest.config.ts'] export default [ ...baseConfig, { languageOptions: { parserOptions: { tsconfigRootDir: __dirname, projectService: { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/puppeteer/vitest.config.ts
npm/puppeteer/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/puppeteer/cypress.config.ts
npm/puppeteer/cypress.config.ts
import { defineConfig } from 'cypress' import type { Browser as PuppeteerBrowser, Page } from 'puppeteer-core' import path from 'path' import express from 'express' import { setup, retry } from './src/plugin' const serverPort = 8000 export default defineConfig({ e2e: { baseUrl: `http://localhost:${serverPort}`...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/puppeteer/support/index.d.ts
npm/puppeteer/support/index.d.ts
/// <reference types="Cypress" /> declare namespace Cypress { interface Chainable { puppeteer(messageName: string, ...args: any[]): Chainable } }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/npm/puppeteer/src/support/index.ts
npm/puppeteer/src/support/index.ts
Cypress.Commands.add('puppeteer', (name, ...args) => { Cypress.log({ name: 'puppeteer', message: name, }) cy.task('__cypressPuppeteer__', { name, args }, { log: false }).then((result: any) => { if (result && result.__error__) { throw new Error(`cy.puppeteer() failed with the following error:\n>...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false