diff --git a/__tests__/compilers/compatability.test.ts b/__tests__/compilers/compatability.test.tsx similarity index 72% rename from __tests__/compilers/compatability.test.ts rename to __tests__/compilers/compatability.test.tsx index 659afc007..7ce595f3b 100644 --- a/__tests__/compilers/compatability.test.ts +++ b/__tests__/compilers/compatability.test.tsx @@ -1,5 +1,9 @@ -import { mdx } from '../../index'; +import React from 'react'; import fs from 'node:fs'; +import { vi } from 'vitest'; +import { render, screen, prettyDOM, configure } from '@testing-library/react'; + +import { mdx, compile, run } from '../../index'; import * as rdmd from '@readme/markdown-legacy'; describe('compatability with RDMD', () => { @@ -199,4 +203,68 @@ This is an image: expect(mdx(rdmd.mdast(md))).toBe(`Contact me at {user.email}\n`); }); + + describe(' wrapping', () => { + // configure({ defaultIgnore: undefined }); + + const rawStyle = ` + `; + const rawScript = ` + `; + const magicScript = `[block:html] + { + "html": "" + } + [/block] + `; + + it('should wrap raw