Skip to content

Commit

Permalink
remove test project dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
astone123 committed Feb 21, 2023
1 parent af70eff commit 14d131d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
import { getContainerEl, setupHooks } from '@cypress/mount-utils'
import { render } from 'solid-js/web'
let dispose

function cleanup () {
dispose === null || dispose === void 0 ? void 0 : dispose()
export default function mount () {
return 'Legit mount function'
}
export function mount (component, options = {}) {
// rendering/mounting function.
const root = getContainerEl()

// Render component with your library's relevant
dispose = render(component, root)

return cy.wait(0, { log: false }).then(() => {
if (options.log !== false) {
Cypress.log({
name: 'mount',
message: 'Mounted component',
})
}
})
}

setupHooks(cleanup)
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"build:mount": "tsc --project tsconfig.mount.json",
"build:definition": "tsc --project tsconfig.definition.json"
},
"dependencies": {
"@cypress/mount-utils": "^4.0.0"
},
"files": [
"package.json",
"definition.js",
Expand Down

3 comments on commit 14d131d

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 14d131d Feb 21, 2023

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:

npm install https://cdn.cypress.io/beta/npm/12.7.0/linux-arm64/feature/ct-public-api-14d131d8ab10ebba7a5c99c3be483b76b251f136/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 14d131d Feb 21, 2023

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:

npm install https://cdn.cypress.io/beta/npm/12.7.0/linux-x64/feature/ct-public-api-14d131d8ab10ebba7a5c99c3be483b76b251f136/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 14d131d Feb 21, 2023

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:

npm install https://cdn.cypress.io/beta/npm/12.7.0/darwin-x64/feature/ct-public-api-14d131d8ab10ebba7a5c99c3be483b76b251f136/cypress.tgz

Please sign in to comment.