Skip to main content
Module

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

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
export const snapshot = {};
snapshot[`Copy static files 1`] = `0`;
snapshot[`Copy static files 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], copy: true, 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], }, { copy: true, engines: undefined, ext: ".css", }, { copy: true, engines: undefined, ext: ".copy", }, { copy: [Function], engines: undefined, ext: ".copy2", }, ],}`;
snapshot[`Copy static files 3`] = `[ { dest: undefined, filename: "_headers", outputPath: "/_headers", parent: "/", remote: undefined, src: "/_headers", }, { dest: undefined, filename: "other/one", outputPath: "/other/one", parent: "/", remote: undefined, src: "/other/one", }, { dest: undefined, filename: "other/two", outputPath: "/other/two", parent: "/", remote: undefined, src: "/other/two", }, { dest: [Function], filename: "assets/inner/inner2/styles.scss", outputPath: "/posts/first-post/assets/inner/inner2/styles.css", parent: "/posts/2022-01-01_first-post", remote: undefined, src: "/posts/2022-01-01_first-post/assets/inner/inner2/styles.scss", }, { dest: [Function], filename: "assets/inner/styles1.scss", outputPath: "/posts/first-post/assets/inner/styles1.css", parent: "/posts/2022-01-01_first-post", remote: undefined, src: "/posts/2022-01-01_first-post/assets/inner/styles1.scss", }, { dest: [Function], filename: "assets/styles.scss", outputPath: "/posts/first-post/assets/styles.css", parent: "/posts/2022-01-01_first-post", remote: undefined, src: "/posts/2022-01-01_first-post/assets/styles.scss", }, { dest: [Function], filename: "callback.copy2", outputPath: "/subdir/posts/first-post/callback.copy3", parent: "/posts/2022-01-01_first-post", remote: undefined, src: "/posts/2022-01-01_first-post/callback.copy2", }, { dest: undefined, filename: "individual-file", outputPath: "/posts/first-post/individual-file", parent: "/posts/2022-01-01_first-post", remote: undefined, src: "/posts/2022-01-01_first-post/individual-file", }, { dest: [Function], filename: "callback1.copy2", outputPath: "/subdir/posts/first-post/inner/callback1.copy3", parent: "/posts/2022-01-01_first-post/inner", remote: undefined, src: "/posts/2022-01-01_first-post/inner/callback1.copy2", }, { dest: [Function], filename: "callback2.copy2", outputPath: "/subdir/posts/first-post/inner/inner2/callback2.copy3", parent: "/posts/2022-01-01_first-post/inner/inner2", remote: undefined, src: "/posts/2022-01-01_first-post/inner/inner2/callback2.copy2", }, { dest: undefined, filename: "to-copy2.copy", outputPath: "/posts/first-post/inner/inner2/to-copy2.copy", parent: "/posts/2022-01-01_first-post/inner/inner2", remote: undefined, src: "/posts/2022-01-01_first-post/inner/inner2/to-copy2.copy", }, { dest: undefined, filename: "to-copy1.copy", outputPath: "/posts/first-post/inner/to-copy1.copy", parent: "/posts/2022-01-01_first-post/inner", remote: undefined, src: "/posts/2022-01-01_first-post/inner/to-copy1.copy", }, { dest: undefined, filename: "to-copy.copy", outputPath: "/posts/first-post/to-copy.copy", parent: "/posts/2022-01-01_first-post", remote: undefined, src: "/posts/2022-01-01_first-post/to-copy.copy", }, { dest: undefined, filename: "main.js", outputPath: "/script/app/main.js", parent: "/script/2022-01-01_app", remote: undefined, src: "/script/2022-01-01_app/main.js", }, { dest: "/_redirects", filename: "static/_redirects", outputPath: "/_redirects", parent: "/", remote: undefined, src: "/static/_redirects", }, { dest: "/one.yes", filename: "static/one.yes", outputPath: "/one.yes", parent: "/", remote: undefined, src: "/static/one.yes", }, { dest: "/two.yes", filename: "static/two.yes", outputPath: "/two.yes", parent: "/", remote: undefined, src: "/static/two.yes", }, { dest: undefined, filename: "styles.css", outputPath: "/styles.css", parent: "/", remote: undefined, src: "/styles.css", }, { dest: undefined, filename: "main.css", outputPath: "/styles/main.css", parent: "/styles", remote: undefined, src: "/styles/main.css", },]`;