cypress-svelte-unit-test
cypress-svelte-unit-test copied to clipboard
Unit testing Svelte components in Cypress E2E test runner
I'm using (routify)[https://routify.dev/] for Svelte routing. When trying to run a simple component test, I get the error:  ## Is this a bug report or a feature request? If...
- look at https://timdeschryver.dev/blog/how-to-test-svelte-components - look at https://nathancahill.com/dainte/introducing - respond to https://twitter.com/mikenikles/status/1258092697098825733 Stretch goal: how to get code coverage?
Right now it only shows the error in the terminal
- https://github.com/leveluptuts/svelte-notion/pull/1
to confirm that all Svelte v3 features are working List: https://svelte.dev/examples Should go into `cypress/components` folder
Debugging the Svelte unit test is difficult because external sourcemaps seem not to be recognized or Cypress does not serve them to the browser. Workaround: use internal sourcemap using [webpack...
Bug: The component constructor can take several options, not just `data`: currently there is `data`, `store` and `slots`, and potentially there will be more. The fact that the second parameter...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [cypress-expect](https://redirect.github.com/bahmutov/cypress-expect) | [`2.5.0` -> `2.5.3`](https://renovatebot.com/diffs/npm/cypress-expect/2.5.0/2.5.3) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@cypress/webpack-preprocessor](https://redirect.github.com/cypress-io/cypress/tree/develop/npm/webpack-preprocessor#readme) ([source](https://redirect.github.com/cypress-io/cypress)) | [`5.10.0` -> `5.17.1`](https://renovatebot.com/diffs/npm/@cypress%2fwebpack-preprocessor/5.10.0/5.17.1) | [](https://docs.renovatebot.com/merge-confidence/) |...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rollup-plugin-filesize](https://redirect.github.com/ritz078/rollup-plugin-filesize) | [`9.1.1` -> `9.1.2`](https://renovatebot.com/diffs/npm/rollup-plugin-filesize/9.1.1/9.1.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...