level_0
int64
0
10k
index
int64
0
0
repo_id
stringlengths
22
152
file_path
stringlengths
41
203
content
stringlengths
11
11.5M
5,307
0
petrpan-code/trpc/trpc/packages/tests/server
petrpan-code/trpc/trpc/packages/tests/server/regression/issue-5034-input-with-index-signature.test.ts
import { inferRouterInputs, inferRouterOutputs, initTRPC, Overwrite, Simplify, } from '@trpc/server'; import * as z from 'zod'; export function hardcodedExample() { return async (data?: unknown) => { return data as { [x: string]: unknown; name: string }; }; } const t = initTRPC.create(); const symbo...
5,308
0
petrpan-code/trpc/trpc/packages/tests/server
petrpan-code/trpc/trpc/packages/tests/server/regression/issue-5037-context-inference.test.ts
import { inferRouterOutputs, initTRPC, ProcedureBuilder, ProcedureParams, TRPCError, } from '@trpc/server'; import { CreateFastifyContextOptions } from '@trpc/server/adapters/fastify'; import { z } from 'zod'; /** * See @sentry/node trpc middleware: * https://github.com/getsentry/sentry-javascript/blob/6d4...
5,309
0
petrpan-code/trpc/trpc/packages/tests/server
petrpan-code/trpc/trpc/packages/tests/server/regression/issue-5056-input-parser-standalone-mw-inference.test.ts
import { experimental_standaloneMiddleware, initTRPC } from '@trpc/server'; import * as z from 'zod'; describe('input/context proper narrowing in procedure chain', () => { test("a narrower input type earlier in the chain should not widen because of a later middleware's wider input requirements", () => { const t ...
5,310
0
petrpan-code/trpc/trpc/packages/tests/server
petrpan-code/trpc/trpc/packages/tests/server/regression/issue-5075-complex-zod-serialized-inference.test.ts
import { inferRouterOutputs, initTRPC } from '@trpc/server'; import * as z from 'zod'; describe('Non-records should not erroneously be inferred as Records in serialized types', () => { const zChange = z.object({ status: z .tuple([ z.literal('tmp').or(z.literal('active')), z.literal('active'...
5,311
0
petrpan-code/trpc/trpc/packages/tests/server
petrpan-code/trpc/trpc/packages/tests/server/regression/serializable-inference.test.tsx
import { routerToServerAndClientNew } from '../___testHelpers'; import { httpLink } from '@trpc/client'; import { inferRouterOutputs, initTRPC } from '@trpc/server/src'; import { konn } from 'konn'; import superjson from 'superjson'; describe('without transformer', () => { const t = initTRPC.create(); const appRou...
5,312
0
petrpan-code/trpc/trpc/packages/tests
petrpan-code/trpc/trpc/packages/tests/showcase/dataloader.test.ts
import { routerToServerAndClientNew } from '../server/___testHelpers'; import { initTRPC } from '@trpc/server'; import { CreateHTTPContextOptions } from '@trpc/server/adapters/standalone'; import DataLoader from 'dataloader'; import { konn } from 'konn'; import { z } from 'zod'; const posts = [ { id: 1, text...
5,313
0
petrpan-code/trpc/trpc/packages/tests
petrpan-code/trpc/trpc/packages/tests/showcase/tinyrpc.test.ts
/** * @see https://trpc.io/blog/tinyrpc-client */ import '../server/___packages'; import '@trpc/server'; import { initTRPC, TRPCError } from '@trpc/server'; import { createHTTPServer } from '@trpc/server/adapters/standalone'; import fetch from 'node-fetch'; import { z } from 'zod'; import { createTinyRPCClient } from...
5,731
0
petrpan-code/ianstormtaylor/slate/packages/slate-react
petrpan-code/ianstormtaylor/slate/packages/slate-react/test/tsconfig.json
{ "extends": "../../../config/typescript/tsconfig.json", "references": [{ "path": "../" }] }
6,842
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/check-lists.test.ts
import { test, expect } from '@playwright/test' test.describe('Check-lists example', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/check-lists') }) test('checks the bullet when clicked', async ({ page }) => { const slateNodeElement = 'div[data-slate-node="...
6,843
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/code-highlighting.test.ts
import { test, expect, Page } from '@playwright/test' test.setTimeout(60 * 1000) test.describe('code highlighting', () => { test.beforeEach(async ({ page }) => { page.goto('http://localhost:3000/examples/code-highlighting') }) for (const testCase of getTestCases()) { const { language, content, highligh...
6,844
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/editable-voids.test.ts
import { test, expect } from '@playwright/test' test.describe('editable voids', () => { const input = 'input[type="text"]' const elements = [ { tag: 'h4', count: 3 }, { tag: input, count: 1 }, { tag: 'input[type="radio"]', count: 2 }, ] test.beforeEach(async ({ page }) => { await page.goto('ht...
6,845
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/embeds.test.ts
import { test, expect } from '@playwright/test' test.describe('embeds example', () => { const slateEditor = 'div[data-slate-editor="true"]' test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/embeds') }) test('contains embeded', async ({ page }) => { await expect(pag...
6,846
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/forced-layout.test.ts
import { test, expect } from '@playwright/test' test.describe('forced layout example', () => { const elements = [ { tag: '#__next h2', count: 1 }, { tag: '#__next p', count: 1 }, ] test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/forced-layout') }) test('che...
6,847
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/hovering-toolbar.test.ts
import { test, expect } from '@playwright/test' test.describe('hovering toolbar example', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/hovering-toolbar') }) test('hovering toolbar appears', async ({ page }) => { await page.pause() await expect(page.ge...
6,848
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/huge-document.test.ts
import { test, expect } from '@playwright/test' test.describe('huge document example', () => { const elements = [ { tag: '#__next h1', count: 100 }, { tag: '#__next p', count: 700 }, ] test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/huge-document') }) test(...
6,849
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/iframe.test.ts
import { test, expect, Page } from '@playwright/test' test.describe('iframe editor', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/iframe') }) test('should be editable', async ({ page }) => { await page .frameLocator('iframe') .locator('body') ...
6,850
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/images.test.ts
import { test, expect } from '@playwright/test' test.describe('images example', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/images') }) test('contains image', async ({ page }) => { await expect(page.getByRole('textbox').locator('img')).toHaveCount(2) }...
6,851
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/inlines.test.ts
import { test, expect } from '@playwright/test' test.describe('Inlines example', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/inlines') }) test('contains link', async ({ page }) => { expect( await page.getByRole('textbox').locator('a').nth(0).innerT...
6,852
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/markdown-preview.test.ts
import { test, expect } from '@playwright/test' test.describe('markdown preview', () => { const slateEditor = 'div[data-slate-editor="true"]' const markdown = 'span[data-slate-string="true"]' test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/markdown-preview') }) tes...
6,853
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/markdown-shortcuts.test.ts
import { test, expect } from '@playwright/test' test.describe('On markdown-shortcuts example', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/markdown-shortcuts') }) test('contains quote', async ({ page }) => { expect( await page.getByRole('textbox')....
6,854
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/mentions.test.ts
import { test, expect } from '@playwright/test' test.describe('mentions example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/mentions') ) test('renders mention element', async ({ page }) => { await expect(page.locator('[data-cy="mention-R2-D2"]'))....
6,855
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/paste-html.test.ts
import { test, expect, Page } from '@playwright/test' test.describe('paste html example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/paste-html') ) const pasteHtml = async (page: Page, htmlContent: string) => { await page.getByRole('textbox').click...
6,856
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/placeholder.test.ts
import { test, expect } from '@playwright/test' test.describe('placeholder example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/custom-placeholder') ) test('renders custom placeholder', async ({ page }) => { const placeholderElement = page.locator(...
6,857
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/plaintext.test.ts
import { test, expect } from '@playwright/test' test.describe('plaintext example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/plaintext') ) test('inserts text when typed', async ({ page }) => { await page.getByRole('textbox').press('Home') awai...
6,858
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/read-only.test.ts
import { test, expect } from '@playwright/test' test.describe('readonly editor', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/read-only') }) test('should not be editable', async ({ page }) => { const slateEditor = '[data-slate-editor="true"]' expect( ...
6,859
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/richtext.test.ts
import { test, expect } from '@playwright/test' test.describe('On richtext example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/richtext') ) test('renders rich text', async ({ page }) => { expect(await page.locator('strong').nth(0).textContent()).t...
6,860
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/search-highlighting.test.ts
import { test, expect } from '@playwright/test' test.describe('search highlighting', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/search-highlighting') ) test('highlights the searched text', async ({ page }) => { const searchField = 'input[type="sear...
6,861
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/select.test.ts
import { test, expect } from '@playwright/test' test.describe('selection', () => { const slateEditor = '[data-slate-node="element"]' test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/richtext') ) test('select the correct block when triple clicking', async ({ page })...
6,862
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/shadow-dom.test.ts
import { test, expect } from '@playwright/test' test.describe('shadow-dom example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/shadow-dom') ) test('renders slate editor inside nested shadow', async ({ page }) => { const outerShadow = page.locator('...
6,863
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/styling.test.ts
import { test, expect } from '@playwright/test' test.describe('styling example', () => { test.beforeEach( async ({ page }) => await page.goto('http://localhost:3000/examples/styling') ) test('applies styles to editor from style prop', async ({ page }) => { page.waitForLoadState('domcontentloaded')...
6,864
0
petrpan-code/ianstormtaylor/slate/playwright/integration
petrpan-code/ianstormtaylor/slate/playwright/integration/examples/tables.test.ts
import { test, expect } from '@playwright/test' test.describe('table example', () => { test.beforeEach(async ({ page }) => { await page.goto('http://localhost:3000/examples/tables') }) test('table tag rendered', async ({ page }) => { await expect(page.getByRole('textbox').locator('table')).toHaveCount(1...
7,111
0
petrpan-code/mattermost/mattermost/e2e-tests/cypress/tests/integration/channels
petrpan-code/mattermost/mattermost/e2e-tests/cypress/tests/integration/channels/autocomplete/common_test.ts
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
1,879
0
petrpan-code/nrwl/nx/e2e/angular-core
petrpan-code/nrwl/nx/e2e/angular-core/src/config.test.ts
import { checkFilesExist, cleanupProject, newProject, removeFile, runCLI, uniq, updateFile, } from '@nx/e2e/utils'; describe('angular.json v1 config', () => { const app1 = uniq('app1'); beforeAll(() => { newProject(); runCLI( `generate @nx/angular:app ${app1} --project-name-and-root-fo...
1,880
0
petrpan-code/nrwl/nx/e2e/angular-core
petrpan-code/nrwl/nx/e2e/angular-core/src/module-federation.test.ts
import { names } from '@nx/devkit'; import { checkFilesExist, cleanupProject, killProcessAndPorts, newProject, readJson, runCLI, runCommandUntil, runE2ETests, uniq, updateFile, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Angular Module Federation', () => { let proj: string; l...
1,881
0
petrpan-code/nrwl/nx/e2e/angular-core
petrpan-code/nrwl/nx/e2e/angular-core/src/ng-add.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, getSelectedPackageManager, packageInstall, readJson, runCLI, runCommand, runNgAdd, runNgNew, uniq, updateFile, } from '@nx/e2e/utils'; import { PackageManager } from 'nx/src/utils/package-manager'; describe('convert Angular CLI wor...
1,882
0
petrpan-code/nrwl/nx/e2e/angular-core
petrpan-code/nrwl/nx/e2e/angular-core/src/projects.test.ts
import { names } from '@nx/devkit'; import { checkFilesExist, cleanupProject, getSize, killPorts, killProcessAndPorts, newProject, readFile, removeFile, runCLI, runCommandUntil, runE2ETests, tmpProjPath, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join, normalize } from ...
1,887
0
petrpan-code/nrwl/nx/e2e/angular-extensions
petrpan-code/nrwl/nx/e2e/angular-extensions/src/cypress-component-tests.test.ts
import { checkFilesDoNotExist, cleanupProject, createFile, newProject, runCLI, runE2ETests, uniq, updateFile, removeFile, checkFilesExist, updateJson, } from '../../utils'; import { names } from '@nx/devkit'; import { join } from 'path'; describe('Angular Cypress Component Tests', () => { let p...
1,888
0
petrpan-code/nrwl/nx/e2e/angular-extensions
petrpan-code/nrwl/nx/e2e/angular-extensions/src/misc.test.ts
import { checkFilesExist, cleanupProject, newProject, readFile, runCLI, uniq, updateFile, } from '@nx/e2e/utils'; import { classify } from '@nx/devkit/src/utils/string-utils'; describe('Move Angular Project', () => { let proj: string; let app1: string; let app2: string; let newPath: string; be...
1,889
0
petrpan-code/nrwl/nx/e2e/angular-extensions
petrpan-code/nrwl/nx/e2e/angular-extensions/src/ngrx.test.ts
import { cleanupProject, expectTestsPass, getSelectedPackageManager, newProject, readJson, runCLI, runCLIAsync, uniq, } from '@nx/e2e/utils'; describe('Angular Package', () => { describe('ngrx', () => { beforeAll(() => { newProject(); }); afterAll(() => { cleanupProject(); ...
1,890
0
petrpan-code/nrwl/nx/e2e/angular-extensions
petrpan-code/nrwl/nx/e2e/angular-extensions/src/tailwind.test.ts
import { cleanupProject, listFiles, newProject, readFile, removeFile, runCLI, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Tailwind support', () => { let project: string; const defaultButtonBgColor = 'bg-blue-700'; const buildLibWithTailwind = {...
1,895
0
petrpan-code/nrwl/nx/e2e/cypress
petrpan-code/nrwl/nx/e2e/cypress/src/cypress.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, createFile, ensureCypressInstallation, killPort, newProject, readJson, runCLI, runE2ETests, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; const TEN_MINS_MS = 600_000; describe('Cypress E2E Test runner', () => { const my...
1,900
0
petrpan-code/nrwl/nx/e2e/detox
petrpan-code/nrwl/nx/e2e/detox/src/detox.test.ts
import { checkFilesExist, isOSX, newProject, runCLI, runCLIAsync, uniq, killPorts, cleanupProject, } from '@nx/e2e/utils'; describe('Detox', () => { const appName = uniq('myapp'); beforeAll(() => { newProject(); }); afterAll(() => cleanupProject()); it('should create files and run lint...
1,905
0
petrpan-code/nrwl/nx/e2e/esbuild
petrpan-code/nrwl/nx/e2e/esbuild/src/esbuild.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, detectPackageManager, newProject, packageInstall, packageManagerLockFile, readFile, readJson, runCLI, runCommand, runCommandUntil, tmpProjPath, uniq, updateFile, updateJson, waitUntil, } from '@nx/e2e/utils'; import { join...
1,910
0
petrpan-code/nrwl/nx/e2e/eslint
petrpan-code/nrwl/nx/e2e/eslint/src/linter.test.ts
import * as path from 'path'; import { checkFilesDoNotExist, checkFilesExist, cleanupProject, createFile, getSelectedPackageManager, newProject, readFile, readJson, renameFile, runCLI, runCreateWorkspace, setMaxWorkers, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import * as ts f...
1,915
0
petrpan-code/nrwl/nx/e2e/expo
petrpan-code/nrwl/nx/e2e/expo/src/expo.test.ts
import { checkFilesExist, cleanupProject, expectTestsPass, getPackageManagerCommand, killPorts, newProject, promisifiedTreeKill, readJson, runCLI, runCLIAsync, runCommand, runCommandUntil, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('expo', ...
1,920
0
petrpan-code/nrwl/nx/e2e/jest
petrpan-code/nrwl/nx/e2e/jest/src/jest-root.test.ts
import { newProject, runCLI, runCLIAsync, uniq } from '@nx/e2e/utils'; describe('Jest root projects', () => { const myapp = uniq('myapp'); const mylib = uniq('mylib'); describe('angular', () => { beforeAll(() => { newProject(); }); it('should test root level app projects', async () => { ...
1,921
0
petrpan-code/nrwl/nx/e2e/jest
petrpan-code/nrwl/nx/e2e/jest/src/jest.test.ts
import { stripIndents } from '@angular-devkit/core/src/utils/literals'; import { newProject, runCLI, runCLIAsync, uniq, updateFile, expectJestTestsToPass, cleanupProject, } from '@nx/e2e/utils'; describe('Jest', () => { beforeAll(() => { newProject({ name: uniq('proj-jest') }); }); afterAll(()...
1,926
0
petrpan-code/nrwl/nx/e2e/js
petrpan-code/nrwl/nx/e2e/js/src/js-executor-node.test.ts
import { cleanupProject, newProject, runCLI, setMaxWorkers, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('js:node executor', () => { let scope: string; beforeAll(() => { scope = newProject(); }); afterAll(() => cleanupProject()); it('should ...
1,927
0
petrpan-code/nrwl/nx/e2e/js
petrpan-code/nrwl/nx/e2e/js/src/js-executor-swc.test.ts
import { execSync } from 'child_process'; import { checkFilesExist, cleanupProject, detectPackageManager, newProject, packageManagerLockFile, readJson, runCLI, tmpProjPath, uniq, updateFile, updateJson, } from '../../utils'; describe('js:swc executor', () => { let scope: string; beforeAll(()...
1,928
0
petrpan-code/nrwl/nx/e2e/js
petrpan-code/nrwl/nx/e2e/js/src/js-executor-tsc.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, createFile, detectPackageManager, getPackageManagerCommand, newProject, packageManagerLockFile, readFile, readJson, rmDist, runCLI, runCLIAsync, runCommand, runCommandUntil, tmpProjPath, uniq, updateFile, updateJson, ...
1,930
0
petrpan-code/nrwl/nx/e2e/js
petrpan-code/nrwl/nx/e2e/js/src/js-inlining.test.ts
import { checkFilesExist, cleanupProject, newProject, readFile, runCLI, uniq, updateFile, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; describe('inlining', () => { let scope: string; beforeAll(() => { scope = newProject(); }); afterAll(() => cleanupProject()); it.eac...
1,931
0
petrpan-code/nrwl/nx/e2e/js
petrpan-code/nrwl/nx/e2e/js/src/js-packaging.test.ts
import { updateJson, cleanupProject, newProject, runCLI, tmpProjPath, runCommand, createFile, uniq, getPackageManagerCommand, readJson, updateFile, } from '@nx/e2e/utils'; import { join } from 'path'; describe('packaging libs', () => { let scope: string; beforeEach(() => { scope = newPro...
1,936
0
petrpan-code/nrwl/nx/e2e/lerna-smoke-tests
petrpan-code/nrwl/nx/e2e/lerna-smoke-tests/src/lerna-smoke-tests.test.ts
/** * These minimal smoke tests are here to ensure that we do not break assumptions on the lerna side * when making updates to nx or @nx/devkit. */ import { cleanupProject, newLernaWorkspace, runLernaCLI, tmpProjPath, updateJson, } from '@nx/e2e/utils'; expect.addSnapshotSerializer({ serialize(str: str...
1,941
0
petrpan-code/nrwl/nx/e2e/next-core
petrpan-code/nrwl/nx/e2e/next-core/src/next-appdir.test.ts
import { cleanupProject, isNotWindows, newProject, runCLI, uniq, updateFile, } from '@nx/e2e/utils'; import { checkApp } from './utils'; describe('Next.js App Router', () => { let proj: string; beforeAll(() => (proj = newProject())); afterAll(() => cleanupProject()); // TODO: enable this when te...
1,942
0
petrpan-code/nrwl/nx/e2e/next-core
petrpan-code/nrwl/nx/e2e/next-core/src/next-lock-file.test.ts
import { detectPackageManager, joinPathFragments } from '@nx/devkit'; import { checkFilesExist, cleanupProject, getPackageManagerCommand, newProject, packageManagerLockFile, runCLI, runCommand, tmpProjPath, uniq, } from '@nx/e2e/utils'; describe('Next.js Lock File', () => { let proj: string; let ...
1,943
0
petrpan-code/nrwl/nx/e2e/next-core
petrpan-code/nrwl/nx/e2e/next-core/src/next-structure.test.ts
import { mkdirSync, removeSync } from 'fs-extra'; import { capitalize } from '@nx/devkit/src/utils/string-utils'; import { checkApp } from './utils'; import { checkFilesExist, cleanupProject, isNotWindows, killPort, newProject, readFile, runCLI, runCommandUntil, tmpProjPath, uniq, updateFile, up...
1,944
0
petrpan-code/nrwl/nx/e2e/next-core
petrpan-code/nrwl/nx/e2e/next-core/src/next-webpack.test.ts
import { checkFilesExist, cleanupProject, newProject, rmDist, runCLI, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Next.js Webpack', () => { let proj: string; let originalEnv: string; beforeEach(() => { proj = newProject(); originalEnv = pr...
1,945
0
petrpan-code/nrwl/nx/e2e/next-core
petrpan-code/nrwl/nx/e2e/next-core/src/next.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, killPort, killPorts, newProject, readFile, runCLI, runCommandUntil, uniq, updateFile, } from '@nx/e2e/utils'; import * as http from 'http'; import { checkApp } from './utils'; describe('Next.js Applications', () => { let proj: stri...
1,951
0
petrpan-code/nrwl/nx/e2e/next-extensions
petrpan-code/nrwl/nx/e2e/next-extensions/src/next-component-tests.test.ts
import { cleanupProject, createFile, newProject, runCLI, runE2ETests, uniq, updateFile, } from '@nx/e2e/utils'; describe('NextJs Component Testing', () => { beforeAll(() => { newProject({ name: uniq('next-ct'), }); }); afterAll(() => cleanupProject()); it('should test a NextJs app...
1,952
0
petrpan-code/nrwl/nx/e2e/next-extensions
petrpan-code/nrwl/nx/e2e/next-extensions/src/next-experimental.test.ts
import { cleanupProject, newProject, runCLI, uniq, updateFile, } from '@nx/e2e/utils'; import { checkApp } from './utils'; describe('Next.js Experimental Features', () => { let proj: string; beforeAll(() => (proj = newProject())); afterAll(() => cleanupProject()); it('should be able to define serv...
1,953
0
petrpan-code/nrwl/nx/e2e/next-extensions
petrpan-code/nrwl/nx/e2e/next-extensions/src/next-storybook.test.ts
import { checkFilesExist, cleanupProject, getPackageManagerCommand, getSelectedPackageManager, newProject, runCLI, runCommand, uniq, } from '@nx/e2e/utils'; const pmc = getPackageManagerCommand({ packageManager: getSelectedPackageManager(), }); describe('Next.js Storybook', () => { let proj: string...
1,954
0
petrpan-code/nrwl/nx/e2e/next-extensions
petrpan-code/nrwl/nx/e2e/next-extensions/src/next-styles.test.ts
import { cleanupProject, newProject, runCLI, uniq } from '@nx/e2e/utils'; import { checkApp } from './utils'; describe('Next.js Styles', () => { let originalEnv: string; beforeAll(() => { newProject(); }); afterAll(() => cleanupProject()); beforeEach(() => { originalEnv = process.env.NODE_ENV; }...
1,960
0
petrpan-code/nrwl/nx/e2e/node
petrpan-code/nrwl/nx/e2e/node/src/node-esbuild.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, newProject, promisifiedTreeKill, readFile, runCLI, runCLIAsync, runCommandUntil, setMaxWorkers, tmpProjPath, uniq, updateFile, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; import { join } from 'path'; describ...
1,961
0
petrpan-code/nrwl/nx/e2e/node
petrpan-code/nrwl/nx/e2e/node/src/node-server.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, killPort, newProject, promisifiedTreeKill, readFile, runCLI, runCommandUntil, uniq, updateFile, setMaxWorkers, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Node Applications + webpack', () => { let...
1,962
0
petrpan-code/nrwl/nx/e2e/node
petrpan-code/nrwl/nx/e2e/node/src/node-webpack.test.ts
import { checkFilesExist, cleanupProject, newProject, readFile, runCLI, runCLIAsync, runCommandUntil, waitUntil, tmpProjPath, uniq, updateFile, setMaxWorkers, updateJson, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; import { join } from 'path'; describe('Node Applications...
1,963
0
petrpan-code/nrwl/nx/e2e/node
petrpan-code/nrwl/nx/e2e/node/src/node.test.ts
import { stripIndents } from '@angular-devkit/core/src/utils/literals'; import { joinPathFragments } from '@nx/devkit'; import { checkFilesDoNotExist, checkFilesExist, cleanupProject, createFile, detectPackageManager, expectJestTestsToPass, getPackageManagerCommand, killPorts, newProject, packageIns...
1,968
0
petrpan-code/nrwl/nx/e2e/nuxt
petrpan-code/nrwl/nx/e2e/nuxt/src/nuxt.test.ts
import { checkFilesExist, cleanupProject, killPorts, newProject, runCLI, uniq, } from '@nx/e2e/utils'; describe('Nuxt Plugin', () => { let proj: string; const app = uniq('app'); beforeAll(() => { proj = newProject({ unsetProjectNameAndRootFormat: false, }); runCLI(`generate @nx/nux...
1,973
0
petrpan-code/nrwl/nx/e2e/nx-init
petrpan-code/nrwl/nx/e2e/nx-init/src/nx-init-angular.test.ts
import { PackageManager } from 'nx/src/utils/package-manager'; import { checkFilesDoNotExist, checkFilesExist, cleanupProject, getPackageManagerCommand, getPublishedVersion, getSelectedPackageManager, runCLI, runCommand, runNgNew, } from '../../utils'; describe('nx init (Angular CLI)', () => { let ...
1,974
0
petrpan-code/nrwl/nx/e2e/nx-init
petrpan-code/nrwl/nx/e2e/nx-init/src/nx-init-monorepo.test.ts
import { createNonNxProjectDirectory, getPackageManagerCommand, getPublishedVersion, getSelectedPackageManager, runCLI, runCommand, updateFile, } from '@nx/e2e/utils'; describe('nx init (Monorepo)', () => { const pmc = getPackageManagerCommand({ packageManager: getSelectedPackageManager(), }); ...
1,975
0
petrpan-code/nrwl/nx/e2e/nx-init
petrpan-code/nrwl/nx/e2e/nx-init/src/nx-init-nest.test.ts
import { e2eCwd, exists, getPackageManagerCommand, getPublishedVersion, runCLI, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; import { removeSync } from 'fs-extra'; describe('nx init (for NestCLI)', () => { const pmc = getPackageManagerCommand({ packageManager: 'npm', }); const ...
1,976
0
petrpan-code/nrwl/nx/e2e/nx-init
petrpan-code/nrwl/nx/e2e/nx-init/src/nx-init-npm-repo.test.ts
import { cleanupProject, createNonNxProjectDirectory, getPackageManagerCommand, getPublishedVersion, getSelectedPackageManager, renameFile, runCLI, runCommand, updateFile, } from '@nx/e2e/utils'; describe('nx init (NPM repo)', () => { const pmc = getPackageManagerCommand({ packageManager: getSe...
1,977
0
petrpan-code/nrwl/nx/e2e/nx-init
petrpan-code/nrwl/nx/e2e/nx-init/src/nx-init-react.test.ts
import { checkFilesDoNotExist, checkFilesExist, getPackageManagerCommand, getPublishedVersion, getSelectedPackageManager, readFile, readJson, runCLI, runCommand, updateFile, } from '@nx/e2e/utils'; import { copySync, renameSync } from 'fs-extra'; import { sync as globSync } from 'glob'; import { joi...
1,990
0
petrpan-code/nrwl/nx/e2e/nx-misc
petrpan-code/nrwl/nx/e2e/nx-misc/src/extras.test.ts
import { parseJson } from '@nx/devkit'; import { checkFilesExist, cleanupProject, isNotWindows, newProject, readJson, runCLI, setMaxWorkers, uniq, updateFile, readFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Extra Nx Misc Tests', () => { beforeAll(() => newPr...
1,991
0
petrpan-code/nrwl/nx/e2e/nx-misc
petrpan-code/nrwl/nx/e2e/nx-misc/src/misc.test.ts
import type { NxJsonConfiguration, ProjectConfiguration } from '@nx/devkit'; import { cleanupProject, createNonNxProjectDirectory, e2eCwd, getPackageManagerCommand, getPublishedVersion, isNotWindows, newProject, readFile, readJson, removeFile, runCLI, runCLIAsync, runCommand, setMaxWorkers, ...
1,992
0
petrpan-code/nrwl/nx/e2e/nx-misc
petrpan-code/nrwl/nx/e2e/nx-misc/src/nxw.test.ts
import type { NxJsonConfiguration } from '@nx/devkit'; import { newWrappedNxWorkspace, updateFile, updateJson, checkFilesDoNotExist, checkFilesExist, cleanupProject, getPublishedVersion, uniq, readJson, readFile, } from '@nx/e2e/utils'; import { bold } from 'chalk'; describe('nx wrapper / .nx insta...
1,993
0
petrpan-code/nrwl/nx/e2e/nx-misc
petrpan-code/nrwl/nx/e2e/nx-misc/src/watch.test.ts
import { cleanupProject, newProject, runCLI, uniq, tmpProjPath, getStrippedEnvironmentVariables, updateJson, isVerboseE2ERun, readFile, } from '@nx/e2e/utils'; import { spawn } from 'child_process'; import { join } from 'path'; import { writeFileSync, mkdtempSync } from 'fs'; import { tmpdir } from 'o...
1,994
0
petrpan-code/nrwl/nx/e2e/nx-misc
petrpan-code/nrwl/nx/e2e/nx-misc/src/workspace.test.ts
import { checkFilesExist, newProject, readJson, cleanupProject, runCLI, uniq, updateFile, readFile, exists, tmpProjPath, getPackageManagerCommand, getSelectedPackageManager, runCommand, } from '@nx/e2e/utils'; import { join } from 'path'; let proj: string; describe('@nx/workspace:convert-to-...
1,999
0
petrpan-code/nrwl/nx/e2e/nx-run
petrpan-code/nrwl/nx/e2e/nx-run/src/affected-graph.test.ts
import type { NxJsonConfiguration } from '@nx/devkit'; import { getPackageManagerCommand, isNotWindows, newProject, readFile, readJson, cleanupProject, runCLI, runCLIAsync, runCommand, uniq, updateFile, checkFilesExist, isWindows, fileExists, removeFile, } from '@nx/e2e/utils'; import { jo...
2,000
0
petrpan-code/nrwl/nx/e2e/nx-run
petrpan-code/nrwl/nx/e2e/nx-run/src/cache.test.ts
import { cleanupProject, directoryExists, listFiles, newProject, readFile, rmDist, runCLI, setMaxWorkers, tmpProjPath, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('cache', () => { beforeEach(() => newProject()); afterEach(() => cleanupProject...
2,001
0
petrpan-code/nrwl/nx/e2e/nx-run
petrpan-code/nrwl/nx/e2e/nx-run/src/invoke-runner.test.ts
import { cleanupProject, newProject, runCLI, runCommand, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Invoke Runner', () => { let proj: string; beforeAll(() => (proj = newProject())); afterAll(() => cleanupProject()); it('should invoke runner imper...
2,002
0
petrpan-code/nrwl/nx/e2e/nx-run
petrpan-code/nrwl/nx/e2e/nx-run/src/nx-cloud.test.ts
import { cleanupProject, newProject, runCLI } from '@nx/e2e/utils'; describe('Nx Cloud', () => { beforeAll(() => newProject({ unsetProjectNameAndRootFormat: false, }) ); const libName = 'test-lib'; beforeAll(() => { runCLI('connect --no-interactive', { env: { NX_CLOUD_API: 'htt...
2,003
0
petrpan-code/nrwl/nx/e2e/nx-run
petrpan-code/nrwl/nx/e2e/nx-run/src/run.test.ts
import { checkFilesExist, cleanupProject, fileExists, isWindows, newProject, readJson, removeFile, runCLI, runCLIAsync, runCommand, setMaxWorkers, tmpProjPath, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { PackageJson } from 'nx/src/utils/package-json'; import * as path fr...
2,008
0
petrpan-code/nrwl/nx/e2e/playwright
petrpan-code/nrwl/nx/e2e/playwright/src/playwright.test.ts
import { cleanupProject, newProject, uniq, runCLI, ensurePlaywrightBrowsersInstallation, getPackageManagerCommand, getSelectedPackageManager, } from '@nx/e2e/utils'; const TEN_MINS_MS = 600_000; describe('Playwright E2E Test runner', () => { const pmc = getPackageManagerCommand({ packageManager: g...
2,014
0
petrpan-code/nrwl/nx/e2e/plugin
petrpan-code/nrwl/nx/e2e/plugin/src/nx-plugin.test.ts
import { ProjectConfiguration } from '@nx/devkit'; import { checkFilesExist, cleanupProject, createFile, expectTestsPass, getPackageManagerCommand, newProject, readJson, runCLI, runCLIAsync, runCommand, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import type { PackageJson } from 'nx/...
2,020
0
petrpan-code/nrwl/nx/e2e/react-core
petrpan-code/nrwl/nx/e2e/react-core/src/react-module-federation.test.ts
import { Tree, stripIndents } from '@nx/devkit'; import { checkFilesExist, cleanupProject, fileExists, killPorts, killProcessAndPorts, newProject, readJson, runCLI, runCLIAsync, runCommandUntil, runE2ETests, tmpProjPath, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join }...
2,021
0
petrpan-code/nrwl/nx/e2e/react-core
petrpan-code/nrwl/nx/e2e/react-core/src/react-package.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, getSize, killPorts, newProject, readFile, readJson, rmDist, runCLI, runCLIAsync, tmpProjPath, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { names } from '@nx/devkit'; import { join } from 'path'; describe('Bu...
2,022
0
petrpan-code/nrwl/nx/e2e/react-core
petrpan-code/nrwl/nx/e2e/react-core/src/react.test.ts
import { checkFilesDoNotExist, checkFilesExist, cleanupProject, createFile, ensureCypressInstallation, killPorts, newProject, readFile, runCLI, runCLIAsync, runE2ETests, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { readFileSync } from 'fs-extra'; import { join } from 'path'...
2,027
0
petrpan-code/nrwl/nx/e2e/react-extensions
petrpan-code/nrwl/nx/e2e/react-extensions/src/cypress-component-tests.test.ts
import { cleanupProject, createFile, ensureCypressInstallation, newProject, runCLI, runE2ETests, uniq, updateFile, updateJson, } from '../../utils'; import { join } from 'path'; describe('React Cypress Component Tests', () => { let projectName; const appName = uniq('cy-react-app'); const usedIn...
2,028
0
petrpan-code/nrwl/nx/e2e/react-extensions
petrpan-code/nrwl/nx/e2e/react-extensions/src/react-vite.test.ts
import { checkFilesExist, cleanupProject, newProject, readJson, runCLI, runCLIAsync, uniq, } from '@nx/e2e/utils'; describe('Build React applications and libraries with Vite', () => { let proj: string; beforeEach(() => { proj = newProject(); }); afterAll(() => { cleanupProject(); }); ...
2,033
0
petrpan-code/nrwl/nx/e2e/react-native
petrpan-code/nrwl/nx/e2e/react-native/src/react-native.test.ts
import { checkFilesExist, cleanupProject, expectTestsPass, getPackageManagerCommand, isOSX, killPorts, newProject, promisifiedTreeKill, readJson, runCLI, runCLIAsync, runCommand, runCommandUntil, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { ChildProcess } from 'child_pr...
2,038
0
petrpan-code/nrwl/nx/e2e/release
petrpan-code/nrwl/nx/e2e/release/src/independent-projects.test.ts
import { joinPathFragments } from '@nx/devkit'; import { cleanupProject, exists, newProject, readFile, runCLI, runCommand, tmpProjPath, uniq, updateJson, } from '@nx/e2e/utils'; expect.addSnapshotSerializer({ serialize(str: string) { return ( str // Remove all output unique to spe...
2,039
0
petrpan-code/nrwl/nx/e2e/release
petrpan-code/nrwl/nx/e2e/release/src/private-js-packages.test.ts
import { cleanupProject, newProject, runCLI, tmpProjPath, uniq, updateJson, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; expect.addSnapshotSerializer({ serialize(str: string) { return ( str // Remove all output unique to specific projects to ensure deterministic sna...
2,040
0
petrpan-code/nrwl/nx/e2e/release
petrpan-code/nrwl/nx/e2e/release/src/release.test.ts
import { NxJsonConfiguration } from '@nx/devkit'; import { cleanupProject, createFile, exists, killProcessAndPorts, newProject, readFile, runCLI, runCommandAsync, runCommandUntil, uniq, updateJson, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; expect.addSnapshotSerializer({ ...
2,045
0
petrpan-code/nrwl/nx/e2e/rollup
petrpan-code/nrwl/nx/e2e/rollup/src/rollup.test.ts
import { checkFilesExist, cleanupProject, newProject, readJson, rmDist, runCLI, runCommand, uniq, updateFile, updateJson, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Rollup Plugin', () => { beforeAll(() => newProject()); afterAll(() => cleanupProject()); it('should be able...
2,050
0
petrpan-code/nrwl/nx/e2e/storybook-angular
petrpan-code/nrwl/nx/e2e/storybook-angular/src/storybook-angular.test.ts
import { checkFilesExist, cleanupProject, killPorts, newProject, runCLI, runCommandUntil, uniq, } from '@nx/e2e/utils'; describe('Storybook executors for Angular', () => { const angularStorybookLib = uniq('test-ui-ng-lib'); beforeAll(() => { newProject(); runCLI( `g @nx/angular:library ...
2,055
0
petrpan-code/nrwl/nx/e2e/storybook
petrpan-code/nrwl/nx/e2e/storybook/src/storybook-nested.test.ts
import { checkFilesExist, cleanupProject, getSelectedPackageManager, killPorts, readJson, runCLI, runCommandUntil, runCreateWorkspace, tmpProjPath, uniq, } from '@nx/e2e/utils'; import { writeFileSync } from 'fs'; import { createFileSync } from 'fs-extra'; describe('Storybook generators and executo...
2,056
0
petrpan-code/nrwl/nx/e2e/storybook
petrpan-code/nrwl/nx/e2e/storybook/src/storybook.test.ts
import { checkFilesExist, cleanupProject, killPorts, newProject, runCLI, runCommandUntil, setMaxWorkers, tmpProjPath, uniq, } from '@nx/e2e/utils'; import { writeFileSync } from 'fs'; import { createFileSync } from 'fs-extra'; import { join } from 'path'; describe('Storybook generators and executors ...
2,072
0
petrpan-code/nrwl/nx/e2e/vite
petrpan-code/nrwl/nx/e2e/vite/src/vite-esm.test.ts
import { checkFilesExist, newProject, renameFile, runCLI, uniq, updateJson, } from '@nx/e2e/utils'; // TODO(jack): This test file can be removed when Vite goes ESM-only. // This test ensures that when CJS is gone from the published `vite` package, Nx will continue to work. describe('Vite ESM tests', () =>...
2,073
0
petrpan-code/nrwl/nx/e2e/vite
petrpan-code/nrwl/nx/e2e/vite/src/vite.test.ts
import { names } from '@nx/devkit'; import { cleanupProject, createFile, directoryExists, exists, fileExists, getPackageManagerCommand, killPorts, listFiles, newProject, promisifiedTreeKill, readFile, readJson, removeFile, rmDist, runCLI, runCommand, runCLIAsync, runCommandUntil, t...
2,078
0
petrpan-code/nrwl/nx/e2e/vue
petrpan-code/nrwl/nx/e2e/vue/src/vue-storybook.test.ts
import { checkFilesExist, cleanupProject, newProject, runCLI, setMaxWorkers, uniq, } from '@nx/e2e/utils'; import { join } from 'path'; describe('Storybook generators and executors for Vue projects', () => { const vueStorybookApp = uniq('vue-app'); let proj; beforeAll(async () => { proj = newProj...