File tree Expand file tree Collapse file tree 5 files changed +109
-125
lines changed
apps/qwik-app/cypress/support
packages/cypress-ct-qwik/src/lib Expand file tree Collapse file tree 5 files changed +109
-125
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,7 @@ npm install -D cypress-ct-qwik
4545
46461 . Run cypress (in watch mode) after installation
47472 . Follow the configuration wizard
48- 3 . Add ` addQwikLoader ` to the ` component.ts ` file -
49-
50- ``` ts
51- // component.ts
52-
53- import { addQwikLoader } from ' cypress-ct-qwik' ;
54-
55- addQwikLoader ();
56- ```
57-
58- 4 . Add the ` mount ` command to ` support/commands.ts ` -
48+ 3 . Add the ` mount ` command to ` support/commands.ts ` -
5949
6050``` ts
6151// commands.ts
Original file line number Diff line number Diff line change 1313// https://on.cypress.io/configuration
1414// ***********************************************************
1515
16- import { addQwikLoader } from 'cypress-ct-qwik' ;
1716// Import commands.ts using ES2015 syntax:
1817import './commands' ;
19-
20- addQwikLoader ( ) ;
Original file line number Diff line number Diff line change 3737 "autoprefixer" : " ^10.4.13" ,
3838 "commitizen" : " ^4.3.0" ,
3939 "commitlint" : " ^17.4.3" ,
40- "cypress" : " 12.8.1 " ,
40+ "cypress" : " 12.9.0 " ,
4141 "cz-conventional-changelog" : " ^3.3.0" ,
4242 "eslint" : " 8.36.0" ,
4343 "eslint-config-prettier" : " 8.6.0" ,
5757 "ts-node" : " 10.9.1" ,
5858 "typescript" : " 5.0.2" ,
5959 "undici" : " 5.21.0" ,
60- "vite" : " 4.1.2 " ,
60+ "vite" : " 4.2.1 " ,
6161 "vite-plugin-dts" : " ~1.7.3" ,
6262 "vite-plugin-eslint" : " ^1.8.1" ,
6363 "vite-tsconfig-paths" : " 4.0.7" ,
Original file line number Diff line number Diff line change 11import type { JSXNode , RenderResult } from '@builder.io/qwik' ;
22import { render } from '@builder.io/qwik' ;
33import { getContainerEl , setupHooks } from '@cypress/mount-utils' ;
4+ import { addQwikLoader } from './add-qwik-loader' ;
45
56let destroy : ( ) => void | undefined ;
67
@@ -9,6 +10,8 @@ function cleanup() {
910}
1011
1112export function mount ( element : JSXNode ) {
13+ addQwikLoader ( ) ;
14+
1215 const root = getContainerEl ( ) ;
1316
1417 const renderResultPromise = render ( root , element ) ;
You can’t perform that action at this time.
0 commit comments