Skip to content

Commit 14d131d

Browse files
committed
remove test project dependencies
1 parent af70eff commit 14d131d

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed
Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
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'
73
}
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)

system-tests/projects/ct-public-api-solid-js/cypress-ct-solid-js/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"build:mount": "tsc --project tsconfig.mount.json",
88
"build:definition": "tsc --project tsconfig.definition.json"
99
},
10-
"dependencies": {
11-
"@cypress/mount-utils": "^4.0.0"
12-
},
1310
"files": [
1411
"package.json",
1512
"definition.js",

0 commit comments

Comments
 (0)