Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compile } from '../../index';
import { compile } from '../../../index';

describe('compile', () => {
describe("{ format: 'md' }", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { RMDXModule } from '../../types';
import type { RMDXModule } from '../../../types';

import { render, screen } from '@testing-library/react';
import React from 'react';

import { compile, run } from '../../lib';
import { execute } from '../helpers';
import { compile, run } from '../../../lib';
import { execute } from '../../helpers';

describe('Custom Components', () => {
let Example;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { exports } from '../../../lib';
import { exports } from '../../../../lib';

import multipleExportsMdx from './input/multipleExports.mdx?raw';
import singleExportMdx from './input/singleExport.mdx?raw';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { mdast } from '../../../lib';
import { mdast } from '../../../../lib';

describe('convert anchor tag', () => {
it('converts anchor tag to link node', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mdast } from '../../../lib';
import { mdast } from '../../../../lib';

// @ts-expect-error - these are being imported as strings
import esmMdx from './esm/in.mdx?raw';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mdast } from '../../../lib';
import { mdast } from '../../../../lib';

describe('convert variable tag', () => {
it('wraps root-level Variable in a paragraph', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mdast, mdx } from '../../index';
import { mdast, mdx } from '../../../index';

describe('mdast html block parsing', () => {
it('parses an html block into mdxJsxTextElement', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from '@testing-library/react';
import React from 'react';

import { execute } from '../helpers';
import { execute } from '../../helpers';

describe('run', () => {
it('resolves user variables in TOC headings', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mix } from '../../lib';
import { mix } from '../../../lib';

describe('gemoji transformer', () => {
it('should transform shortcodes back to emojis', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { h } from 'hastscript';

import { hast } from '../../lib';
import { hast } from '../../../lib';

describe('hast transformer', () => {
it('parses components into the tree', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mix } from '../../lib';
import { mix } from '../../../lib';

describe('mix', () => {
it('renders markdown as HTML', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { RMDXModule } from '../../types';
import type { RMDXModule } from '../../../types';
import type { MDXProps } from 'mdx/types';

import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import React from 'react';

import { compile, mdxish, run } from '../../lib';
import renderMdxish from '../../lib/renderMdxish';
import { compile, mdxish, run } from '../../../lib';
import renderMdxish from '../../../lib/renderMdxish';

describe('renderMdxish', () => {
it('renders simple HTML content', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { hast, mdxish, plain } from '../../index';
import { hast, mdxish, plain } from '../../../index';

describe('plain compiler', () => {
it('returns plain text of markdown components', () => {
Expand Down