Skip to main content
Module

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

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Latest
File
export const snapshot = {};
snapshot[`build a site with jsx/tsx modules 1`] = `{ formats: [ { engines: 0, ext: ".page.toml", loader: [AsyncFunction: toml], pageType: "page", }, { engines: 1, ext: ".page.ts", loader: [AsyncFunction: module], pageType: "page", }, { engines: 1, ext: ".page.js", loader: [AsyncFunction: module], pageType: "page", }, { engines: 0, ext: ".page.jsonc", loader: [AsyncFunction: json], pageType: "page", }, { engines: 0, ext: ".page.json", loader: [AsyncFunction: json], pageType: "page", }, { dataLoader: [AsyncFunction: json], engines: 0, ext: ".json", loader: [AsyncFunction: json], }, { dataLoader: [AsyncFunction: json], engines: 0, ext: ".jsonc", loader: [AsyncFunction: json], }, { engines: 1, ext: ".md", loader: [AsyncFunction: text], pageType: "page", }, { engines: 1, ext: ".markdown", loader: [AsyncFunction: text], pageType: "page", }, { dataLoader: [AsyncFunction: module], engines: 1, ext: ".js", loader: [AsyncFunction: module], }, { dataLoader: [AsyncFunction: module], engines: 1, ext: ".ts", loader: [AsyncFunction: module], }, { engines: 1, ext: ".vento", loader: [AsyncFunction: text], pageType: "page", }, { engines: 1, ext: ".vto", loader: [AsyncFunction: text], pageType: "page", }, { dataLoader: [AsyncFunction: toml], engines: 0, ext: ".toml", loader: [AsyncFunction: toml], }, { dataLoader: [AsyncFunction: yaml], engines: 0, ext: ".yaml", loader: [AsyncFunction: yaml], pageType: "page", }, { dataLoader: [AsyncFunction: yaml], engines: 0, ext: ".yml", loader: [AsyncFunction: yaml], pageType: "page", }, { engines: 1, ext: ".jsx", loader: [AsyncFunction: module], pageType: "page", }, { engines: 1, ext: ".tsx", loader: [AsyncFunction: module], pageType: "page", }, ], src: [ "/", "/_components", "/_components/button.jsx", "/_includes", "/_includes/hello.jsx", "/_includes/layout.jsx", "/index.jsx", "/multiple.jsx", "/with-function.jsx", "/with-markdown.md", ],}`;
snapshot[`build a site with jsx/tsx modules 2`] = `[]`;
snapshot[`build a site with jsx/tsx modules 3`] = `[ { content: "<!DOCTYPE html><html><head><title>This is the title</title></head><body><main><h1>Hello world</h1><p>This is a JSX page</p></main></body></html>", data: { basename: "index", children: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", "toString", ], comp: [ "_components", "_proxies", ], content: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", ], date: [], layout: "layout.jsx", mergedKeys: [ "tags", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", title: "This is the title", url: "/", }, src: { asset: false, ext: ".jsx", path: "/index", remote: undefined, }, }, { content: "<!DOCTYPE html><html><head><title></title></head><body><main><div>1</div></main></body></html>", data: { basename: "multiple", children: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", "toString", ], comp: [ "_components", "_proxies", ], content: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", ], date: [], layout: "layout.jsx", mergedKeys: [ "tags", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", url: "/page/1/", }, src: { asset: false, ext: ".jsx", path: "/multiple[0]", remote: undefined, }, }, { content: "<!DOCTYPE html><html><head><title></title></head><body><main><div>2</div></main></body></html>", data: { basename: "multiple", children: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", "toString", ], comp: [ "_components", "_proxies", ], content: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", ], date: [], layout: "layout.jsx", mergedKeys: [ "tags", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", url: "/page/2/", }, src: { asset: false, ext: ".jsx", path: "/multiple[1]", remote: undefined, }, }, { content: '<!DOCTYPE html><html><head><title>This is the title</title></head><body><main><h1>This is the title</h1><p>This is a JSX page <a href="/blog/">Go to home</a></p></main></body></html>', data: { basename: "with-function", children: [ "\$\$typeof", "type", "key", "ref", "props", "_owner", "_store", "toString", ], comp: [ "_components", "_proxies", ], content: "default", date: [], layout: "layout.jsx", mergedKeys: [ "tags", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", title: "This is the title", url: "/with-function/", }, src: { asset: false, ext: ".jsx", path: "/with-function", remote: undefined, }, }, { content: '<!DOCTYPE html><html><head><title>Markdown combined with JSX</title></head><body><main><div><h1 class="foo">Hello world</h1><p>This is a <strong>markdown</strong> text. <a href="/">Go home</a></p></div></main></body></html>', data: { basename: "with-markdown", children: '<h1 class="foo">Hello world</h1><p>This is a <strong>markdown</strong> text. <a href="/">Go home</a></p>', comp: [ "_components", "_proxies", ], content: "# Hello world{.foo}This is a **markdown** text. [Go home](/)", date: [], layout: "layout.jsx", mergedKeys: [ "tags", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", title: "Markdown combined with JSX", url: "/with-markdown/", }, src: { asset: false, ext: ".md", path: "/with-markdown", remote: undefined, }, },]`;