-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement JIT component experiment [run ci]
rework run mode to reuse dev server throughout run and just update entries (similar to open mode) to hopefully remedy memory leak [run ci]
- Loading branch information
1 parent
66af8e6
commit 4871267
Showing
53 changed files
with
4,879 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
packages/app/cypress/e2e/runner/runner-ct.experimentalJustInTimeCompile.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import type { fixtureDirs } from '@tooling/system-tests' | ||
|
||
type ProjectDirs = typeof fixtureDirs | ||
|
||
const EXPERIMENTAL_JIT_DIR: ProjectDirs[number] = 'experimental-JIT' | ||
|
||
const PROJECTS: {bundler: 'vite' | 'webpack'}[] = [ | ||
{ bundler: 'vite' }, | ||
{ bundler: 'webpack' }, | ||
] | ||
|
||
for (const { bundler } of PROJECTS) { | ||
const PROJECT_NAME = `${EXPERIMENTAL_JIT_DIR}/${bundler}` | ||
|
||
describe(`CT experimentalJustInTimeCompile: ${bundler}`, { viewportWidth: 1500, defaultCommandTimeout: 30000 }, () => { | ||
const visitComponentSpecAndVerifyPass = (specNumber: number) => { | ||
cy.contains(`Component-${specNumber}.cy.jsx`).click() | ||
cy.waitForSpecToFinish(undefined) | ||
cy.get('[aria-label="Stats"] .passed > .num').should('contain', '1') | ||
cy.get('[aria-label="Stats"] .failed > .num').should('contain', '--') | ||
} | ||
|
||
beforeEach(() => { | ||
// @ts-expect-error | ||
cy.scaffoldProject(PROJECT_NAME) | ||
cy.findBrowsers() | ||
}), | ||
|
||
it(`can run multiple CT tests without interruption`, () => { | ||
// @ts-expect-error | ||
cy.openProject(PROJECT_NAME, ['--component']) | ||
cy.startAppServer('component') | ||
cy.visitApp() | ||
cy.specsPageIsVisible() | ||
visitComponentSpecAndVerifyPass(2) | ||
cy.get('[data-cy="sidebar-link-specs-page"]').click() | ||
visitComponentSpecAndVerifyPass(1) | ||
cy.get('[data-cy="sidebar-link-specs-page"]').click() | ||
visitComponentSpecAndVerifyPass(3) | ||
}) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4871267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
4871267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
4871267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
4871267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
4871267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: