diff options
author | 2024-05-08 17:24:47 +0800 | |
---|---|---|
committer | 2024-05-08 10:24:47 +0100 | |
commit | 685fc22bc6247be69a34c3f6945dec058c19fd71 (patch) | |
tree | 4cb5c5e8fc06443b2dd35eb244cb3815358ae9e3 /packages/integrations/mdx/test/css-head-mdx.test.js | |
parent | cceeafb62adf96b6f52b87024d774a30adf7f376 (diff) | |
download | astro-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.js | 2 |
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 () => { |