summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/css-head-mdx.test.js
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2024-05-08 17:24:47 +0800
committerGravatar GitHub <noreply@github.com> 2024-05-08 10:24:47 +0100
commit685fc22bc6247be69a34c3f6945dec058c19fd71 (patch)
tree4cb5c5e8fc06443b2dd35eb244cb3815358ae9e3 /packages/integrations/mdx/test/css-head-mdx.test.js
parentcceeafb62adf96b6f52b87024d774a30adf7f376 (diff)
downloadastro-685fc22bc6247be69a34c3f6945dec058c19fd71.tar.gz
astro-685fc22bc6247be69a34c3f6945dec058c19fd71.tar.zst
astro-685fc22bc6247be69a34c3f6945dec058c19fd71.zip
Improve content collection styles and scripts build perf (#10959)
* Improve content collection styles and scripts build perf * Update test It was actually a bug. There was an empty module script injected. * Skip test * Fix test not matching non-ccc behaviour * Workaround bug to make test pass * Update .changeset/grumpy-pillows-develop.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/mdx/test/css-head-mdx.test.js')
-rw-r--r--packages/integrations/mdx/test/css-head-mdx.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/mdx/test/css-head-mdx.test.js b/packages/integrations/mdx/test/css-head-mdx.test.js
index 5caab3d05..083348015 100644
--- a/packages/integrations/mdx/test/css-head-mdx.test.js
+++ b/packages/integrations/mdx/test/css-head-mdx.test.js
@@ -50,7 +50,7 @@ describe('Head injection w/ MDX', () => {
assert.equal(links.length, 1);
const scripts = document.querySelectorAll('head script[type=module]');
- assert.equal(scripts.length, 2);
+ assert.equal(scripts.length, 1);
});
it('Using component using slots.render() API', async () => {