bahmutov / cypress-svelte-unit-test

Unit testing Svelte components in Cypress E2E test runner
162 stars 21 forks source link

[bug] index.mount is not a function #173

Open kierangilliam opened 4 years ago

kierangilliam commented 4 years ago

I'm using (routify)[https://routify.dev/] for Svelte routing.

When trying to run a simple component test, I get the error:

image

Is this a bug report or a feature request?

If this is a bug report, please provide as much info as possible

    "cypress": "^4.11.0",
    "cypress-svelte-unit-test": "^3.3.0",

Steps to reproduce

git clone https://github.com/kierangilliam/routify-svelte-unit-integration
cd routify-svelte-unit-integration
yarn install --frozen-lockfile
yarn cypress open
# Navigate to the 'simple' test and run