Adding stimulus breaks a test
Closed this issue · 1 comments
tpaulshippy commented
Can someone help me understand why adding this block above the </head>
tag of src/tests/fixtures/loading.html
breaks a test?
<script type="module">
import { Application, Controller } from "https://unpkg.com/@hotwired/stimulus/dist/stimulus.js"
</script>
Test that breaks:
yarn test:browser -g "reloading a frame reloads the content"
The same line exists in src/tests/fixtures/page_refresh.html
so I'm not sure why it works there but not in loading.html
tpaulshippy commented
Oops - meant to put this in turbo, not turbo-rails