File tree Expand file tree Collapse file tree 2 files changed +2
-27
lines changed
system-tests/projects/ct-public-api-solid-js/cypress-ct-solid-js Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change 1
- import { getContainerEl , setupHooks } from '@cypress/mount-utils'
2
- import { render } from 'solid-js/web'
3
- let dispose
4
-
5
- function cleanup ( ) {
6
- dispose === null || dispose === void 0 ? void 0 : dispose ( )
1
+ export default function mount ( ) {
2
+ return 'Legit mount function'
7
3
}
8
- export function mount ( component , options = { } ) {
9
- // rendering/mounting function.
10
- const root = getContainerEl ( )
11
-
12
- // Render component with your library's relevant
13
- dispose = render ( component , root )
14
-
15
- return cy . wait ( 0 , { log : false } ) . then ( ( ) => {
16
- if ( options . log !== false ) {
17
- Cypress . log ( {
18
- name : 'mount' ,
19
- message : 'Mounted component' ,
20
- } )
21
- }
22
- } )
23
- }
24
-
25
- setupHooks ( cleanup )
Original file line number Diff line number Diff line change 7
7
"build:mount" : " tsc --project tsconfig.mount.json" ,
8
8
"build:definition" : " tsc --project tsconfig.definition.json"
9
9
},
10
- "dependencies" : {
11
- "@cypress/mount-utils" : " ^4.0.0"
12
- },
13
10
"files" : [
14
11
" package.json" ,
15
12
" definition.js" ,
You can’t perform that action at this time.
0 commit comments