bahmutov / cypress-svelte-unit-test

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

feat: allow html around the component #77

Closed bahmutov closed 4 years ago

bahmutov commented 4 years ago
mount(HelloWorld, null, {
      html: `
        <div class="test-page">
          this is a test
          <div id="here"></div>
          this is after component
        </div>
      `,
      style: `
        body {
          background: pink
        }
        .test-page {
          background: cyan
        }
        #here {
          background: yellow
        }
      `,
    })
bahmutov commented 4 years ago

:tada: This PR is included in version 3.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: