Skip to main content
Module

x/lume/tests/__snapshots__/mdx.test.ts.snap

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
export const snapshot = {};
snapshot[`Build a mdx site 1`] = `1`;
snapshot[`Build a mdx site 2`] = `{ formats: [ { engines: 1, ext: ".tmpl.ts", pageLoader: [AsyncFunction: module], }, { engines: 1, ext: ".tmpl.js", pageLoader: [AsyncFunction: module], }, { engines: undefined, ext: ".tmpl.json", pageLoader: [AsyncFunction: json], }, { dataLoader: [AsyncFunction: json], engines: undefined, ext: ".json", }, { engines: 1, ext: ".md", pageLoader: [AsyncFunction: text], }, { componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".js", }, { componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".ts", }, { componentLoader: [AsyncFunction: text], engines: 1, ext: ".njk", includesPath: "_includes", pageLoader: [AsyncFunction: text], }, { dataLoader: [AsyncFunction: yaml], engines: undefined, ext: ".yaml", pageLoader: [AsyncFunction: yaml], }, { dataLoader: [AsyncFunction: yaml], engines: undefined, ext: ".yml", pageLoader: [AsyncFunction: yaml], }, { componentLoader: [AsyncFunction: module], engines: 1, ext: ".jsx", pageLoader: [AsyncFunction: module], }, { componentLoader: [AsyncFunction: module], engines: 1, ext: ".tsx", pageLoader: [AsyncFunction: module], }, { engines: 1, ext: ".mdx", pageLoader: [AsyncFunction: text], }, ],}`;
snapshot[`Build a mdx site 3`] = `[]`;
snapshot[`Build a mdx site 4`] = `{ content: '<!DOCTYPE html><header><h1>Hello world</h1><p>This is a description</p></header><h2>Hello world</h2><p>This is a markdown file with the title <strong>Hello world</strong>.</p><img src="https://via.placeholder.com/350x150" alt="foo" />', data: { comp: {}, content: 'import Image from "./_includes/Image.tsx";<comp.Header title={title} description={description}/>## Hello world
This is a markdown file with the title **{ title }**.
<Image alt="foo" />', date: 1970-01-01T00:00:00.000Z, description: "This is a description", mergedKeys: { tags: "stringArray", }, page: undefined, paginate: [Function: paginate], search: Search {}, tags: [ ], title: "Hello world", url: "/", }, dest: { ext: ".html", path: "/index", }, src: { asset: undefined, ext: ".mdx", path: "/index", remote: undefined, slug: "index", },}`;