aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/vue/test/app-entrypoint.test.js
diff options
context:
space:
mode:
authorGravatar Barthélémy Ledoux <bart@cypress.io> 2023-09-06 15:01:01 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-06 15:01:01 +0200
commit1947ef7a99ce3d1d6ea797842edd31d5edffa5de (patch)
tree014ebe5f557e4500704e0170bfc2dd78f8d8af16 /packages/integrations/vue/test/app-entrypoint.test.js
parent48ff7855b238536a3df17cb29335c90029fc41a4 (diff)
downloadastro-1947ef7a99ce3d1d6ea797842edd31d5edffa5de.tar.gz
astro-1947ef7a99ce3d1d6ea797842edd31d5edffa5de.tar.zst
astro-1947ef7a99ce3d1d6ea797842edd31d5edffa5de.zip
fix: no asset plugin w/ img is imported with query (#8353)
* fix: no asset plugin w/ img is imported with query * add changeset * add test for the new feature * remove exp * use removeQueryString instead of `includes('?')` it's more explicit --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/vue/test/app-entrypoint.test.js')
-rw-r--r--packages/integrations/vue/test/app-entrypoint.test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/integrations/vue/test/app-entrypoint.test.js b/packages/integrations/vue/test/app-entrypoint.test.js
index 5c9ea840c..4f4f389d1 100644
--- a/packages/integrations/vue/test/app-entrypoint.test.js
+++ b/packages/integrations/vue/test/app-entrypoint.test.js
@@ -30,4 +30,12 @@ describe('App Entrypoint', () => {
const js = await fixture.readFile(client);
expect(js).to.match(/\w+\.component\(\"Bar\"/gm);
});
+
+ it('loads svg components without transforming them to assets', async () => {
+ const data = await fixture.readFile('/index.html');
+ const { document } = parseHTML(data);
+ const client = document.querySelector('astro-island svg');
+
+ expect(client).not.to.be.undefined;
+ });
});