summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/astro-content-css.test.js
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2023-06-06 13:48:10 -0400
committerGravatar GitHub <noreply@github.com> 2023-06-06 13:48:10 -0400
commit8034edd9ecf805073395ba7f68f73cd5fc4d2c73 (patch)
treea9e228c8c02a686d83f17f2e75d32f9e4c6b232b /packages/integrations/mdx/test/astro-content-css.test.js
parent2a4bb23b2f7f82b3fabdad4d64101fcc778acaa4 (diff)
downloadastro-8034edd9ecf805073395ba7f68f73cd5fc4d2c73.tar.gz
astro-8034edd9ecf805073395ba7f68f73cd5fc4d2c73.tar.zst
astro-8034edd9ecf805073395ba7f68f73cd5fc4d2c73.zip
Fix [Object AsyncGenerator] logging for Markdoc components (#7307)
* Revert "Bug 6672 (#7062)" This reverts commit cf621340b00fda441f4ef43196c0363d09eae70c. * chore: remove unused test * chore: changeset
Diffstat (limited to 'packages/integrations/mdx/test/astro-content-css.test.js')
-rw-r--r--packages/integrations/mdx/test/astro-content-css.test.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/packages/integrations/mdx/test/astro-content-css.test.js b/packages/integrations/mdx/test/astro-content-css.test.js
deleted file mode 100644
index 712aaf547..000000000
--- a/packages/integrations/mdx/test/astro-content-css.test.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { expect } from 'chai';
-import * as cheerio from 'cheerio';
-import { loadFixture } from '../../../astro/test/test-utils.js';
-import mdx from '@astrojs/mdx';
-
-describe('build css from the component', async () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({
- root: new URL('./fixtures/astro-content-css/', import.meta.url),
- integrations: [mdx()],
- });
- await fixture.build();
- });
-
- describe('Build', () => {
- before(async () => {
- await fixture.build();
- });
-
- it('including css and js from the component in pro', async () => {
- const html = await fixture.readFile('/index.html');
- const $ = cheerio.load(html);
- expect($('link[href$=".css"]').attr('href')).to.match(/^\/_astro\//);
- expect($('script[src$=".js"]').attr('src')).to.match(/^\/_astro\//);
- });
- });
-
- describe('Dev', () => {
- let devServer;
- before(async () => {
- devServer = await fixture.startDevServer();
- });
-
- after(async () => {
- devServer.stop();
- });
-
- it('ncluding css and js from the component in Dev', async () => {
- let res = await fixture.fetch(`/`);
- expect(res.status).to.equal(200);
- const html = await res.text();
- const $ = cheerio.load(html);
- expect($.html()).to.include('CornflowerBlue');
- expect($('script[src$=".js"]').attr('src')).to.include('astro');
- });
- });
-});