Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachJW34 committed Aug 26, 2022
1 parent e53f3a1 commit b8cd5fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
6 changes: 3 additions & 3 deletions npm/svelte/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# @cypress/svelte

Mount Svelte components in the open source [Cypress.io](https://www.cypress.io/) test runner **v10.6.0+**
Mount Svelte components in the open source [Cypress.io](https://www.cypress.io/) test runner **v10.7.0+**

> **Note:** This package is bundled with the `cypress` package and should not need to be installed separately. See the [Svelte Component Testing Docs](https://docs.cypress.io/guides/component-testing/quickstart-svelte#Configuring-Component-Testing) for mounting Svelte components. Installing and importing `mount` from `@cypress/svelte` should only be used for advanced use-cases.
## Install

- Requires Svelte >= 3
- Requires Cypress v10.6.0 or later
- Requires Cypress v10.7.0 or later
- Requires [Node](https://nodejs.org/en/) version 12 or above

```sh
Expand All @@ -32,7 +32,7 @@ For more information, please check the official docs for [running Cypress](https

```js
import { mount } from '@cypress/svelte'
import { HelloWorld } from './HelloWorld.svelte'
import HelloWorld from './HelloWorld.svelte'

describe('HelloWorld component', () => {
it('works', () => {
Expand Down
Empty file.
24 changes: 0 additions & 24 deletions system-tests/project-fixtures/svelte/cypress/support/component.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
// ***********************************************************
// This example support/component.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import "./commands";

// Alternatively you can use CommonJS syntax:
// require('./commands')

import { mount } from "cypress/svelte";
import "../../src/styles.css"

Cypress.Commands.add("mount", mount);

// Example use:
// cy.mount(MyComponent)

0 comments on commit b8cd5fe

Please sign in to comment.