Skip to content

Commit 50f43bb

Browse files
Change cypress preprocessor (#2712)
1 parent f78972e commit 50f43bb

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

cypress.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export default defineConfig({
1212
// We've imported your old cypress plugins here.
1313
// You may want to clean this up later by importing these.
1414
setupNodeEvents(on, config) {
15+
on('file:preprocessor', require('cypress-vite')(config));
16+
1517
/**
1618
* Plugin for cypress that adds better terminal output for easier debugging.
1719
* Prints cy commands, browser console logs, cy.request and cy.intercept data. Great for your pipelines.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"cypress-intellij-reporter": "^0.0.7",
5757
"cypress-plugin-tab": "^1.0.5",
5858
"cypress-terminal-report": "^5.3.2",
59+
"cypress-vite": "^1.5.0",
5960
"eslint": "^8.37.0",
6061
"eslint-config-codex": "^1.7.1",
6162
"eslint-plugin-chai-friendly": "^0.7.2",

yarn.lock

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,21 @@ chokidar@3.5.3:
14241424
optionalDependencies:
14251425
fsevents "~2.3.2"
14261426

1427+
chokidar@^3.5.3:
1428+
version "3.6.0"
1429+
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
1430+
integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
1431+
dependencies:
1432+
anymatch "~3.1.2"
1433+
braces "~3.0.2"
1434+
glob-parent "~5.1.2"
1435+
is-binary-path "~2.1.0"
1436+
is-glob "~4.0.1"
1437+
normalize-path "~3.0.0"
1438+
readdirp "~3.6.0"
1439+
optionalDependencies:
1440+
fsevents "~2.3.2"
1441+
14271442
ci-info@^3.2.0:
14281443
version "3.9.0"
14291444
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4"
@@ -1689,6 +1704,14 @@ cypress-terminal-report@^5.3.2:
16891704
semver "^7.3.5"
16901705
tv4 "^1.3.0"
16911706

1707+
cypress-vite@^1.5.0:
1708+
version "1.5.0"
1709+
resolved "https://registry.yarnpkg.com/cypress-vite/-/cypress-vite-1.5.0.tgz#471ecc1175c7ab51b3b132c595dc3c7e222fe944"
1710+
integrity sha512-vvTMqJZgI3sN2ylQTi4OQh8LRRjSrfrIdkQD5fOj+EC/e9oHkxS96lif1SyDF1PwailG1tnpJE+VpN6+AwO/rg==
1711+
dependencies:
1712+
chokidar "^3.5.3"
1713+
debug "^4.3.4"
1714+
16921715
cypress@^13.7.1:
16931716
version "13.7.1"
16941717
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.7.1.tgz#d1208eb04efd46ef52a30480a5da71a03373261a"

0 commit comments

Comments
 (0)