From 7f2bcc8295f629cd8853eab558c73ea8d262ccbb Mon Sep 17 00:00:00 2001 From: Void <57257404+into-the-v0id@users.noreply.github.com> Date: Sat, 19 Oct 2024 13:50:30 +0200 Subject: [PATCH 1/2] Enable 'sri' and 'reading_info' tests (they were skipped because of wrong filenames) --- .../{reading_info.ts.snap => reading_info.test.ts.snap} | 0 tests/__snapshots__/{sri.ts.snap => sri.test.ts.snap} | 0 tests/{reading_info.ts => reading_info.test.ts} | 0 tests/{sri.ts => sri.test.ts} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename tests/__snapshots__/{reading_info.ts.snap => reading_info.test.ts.snap} (100%) rename tests/__snapshots__/{sri.ts.snap => sri.test.ts.snap} (100%) rename tests/{reading_info.ts => reading_info.test.ts} (100%) rename tests/{sri.ts => sri.test.ts} (100%) diff --git a/tests/__snapshots__/reading_info.ts.snap b/tests/__snapshots__/reading_info.test.ts.snap similarity index 100% rename from tests/__snapshots__/reading_info.ts.snap rename to tests/__snapshots__/reading_info.test.ts.snap diff --git a/tests/__snapshots__/sri.ts.snap b/tests/__snapshots__/sri.test.ts.snap similarity index 100% rename from tests/__snapshots__/sri.ts.snap rename to tests/__snapshots__/sri.test.ts.snap diff --git a/tests/reading_info.ts b/tests/reading_info.test.ts similarity index 100% rename from tests/reading_info.ts rename to tests/reading_info.test.ts diff --git a/tests/sri.ts b/tests/sri.test.ts similarity index 100% rename from tests/sri.ts rename to tests/sri.test.ts From 3239c5656fe16702c6bf5e327cd1dd48dfb94c26 Mon Sep 17 00:00:00 2001 From: Void <57257404+into-the-v0id@users.noreply.github.com> Date: Sat, 19 Oct 2024 13:51:10 +0200 Subject: [PATCH 2/2] Update 'reading_info' test snapshot --- tests/__snapshots__/reading_info.test.ts.snap | 84 ++++++++++++------- 1 file changed, 56 insertions(+), 28 deletions(-) diff --git a/tests/__snapshots__/reading_info.test.ts.snap b/tests/__snapshots__/reading_info.test.ts.snap index 7b44cc781..7baea6b8c 100644 --- a/tests/__snapshots__/reading_info.test.ts.snap +++ b/tests/__snapshots__/reading_info.test.ts.snap @@ -3,82 +3,109 @@ export const snapshot = {}; snapshot[`Reading info plugin 1`] = ` { formats: [ + { + engines: 0, + ext: ".page.toml", + loader: [AsyncFunction: toml], + pageType: "page", + }, { engines: 1, - ext: ".tmpl.ts", - pageLoader: [AsyncFunction: module], + ext: ".page.ts", + loader: [AsyncFunction: module], + pageType: "page", }, { engines: 1, - ext: ".tmpl.js", - pageLoader: [AsyncFunction: module], + ext: ".page.js", + loader: [AsyncFunction: module], + pageType: "page", }, { - engines: undefined, - ext: ".tmpl.jsonc", - pageLoader: [AsyncFunction: json], + engines: 0, + ext: ".page.jsonc", + loader: [AsyncFunction: json], + pageType: "page", }, { - engines: undefined, - ext: ".tmpl.json", - pageLoader: [AsyncFunction: json], + engines: 0, + ext: ".page.json", + loader: [AsyncFunction: json], + pageType: "page", }, { dataLoader: [AsyncFunction: json], - engines: undefined, + engines: 0, ext: ".json", + loader: [AsyncFunction: json], }, { dataLoader: [AsyncFunction: json], - engines: undefined, + engines: 0, ext: ".jsonc", + loader: [AsyncFunction: json], }, { engines: 1, ext: ".md", - pageLoader: [AsyncFunction: text], + loader: [AsyncFunction: text], + pageType: "page", }, { engines: 1, ext: ".markdown", - pageLoader: [AsyncFunction: text], + loader: [AsyncFunction: text], + pageType: "page", }, { - componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".js", + loader: [AsyncFunction: module], }, { - componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".ts", + loader: [AsyncFunction: module], }, { - componentLoader: [AsyncFunction: text], engines: 1, - ext: ".njk", - includesPath: "_includes", - pageLoader: [AsyncFunction: text], + 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: undefined, + engines: 0, ext: ".yaml", - pageLoader: [AsyncFunction: yaml], + loader: [AsyncFunction: yaml], + pageType: "page", }, { dataLoader: [AsyncFunction: yaml], - engines: undefined, + engines: 0, ext: ".yml", - pageLoader: [AsyncFunction: yaml], + loader: [AsyncFunction: yaml], + pageType: "page", }, ], src: [ "/", "/_includes", - "/_includes/layout.njk", + "/_includes/layout.vto", "/page.md", ], } @@ -127,6 +154,7 @@ loop on focusing solely on the bottom line.

', data: { author: "Óscar Otero", + basename: "page", children: '

Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view @@ -184,13 +212,14 @@ DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line. ', date: [], - layout: "layout.njk", + layout: "layout.vto", mergedKeys: [ "tags", ], page: [ "src", "data", + "asset", ], paginate: "paginate", readingInfo: [ @@ -204,11 +233,10 @@ loop on focusing solely on the bottom line. url: "/page/", }, src: { - asset: undefined, + asset: false, ext: ".md", path: "/page", remote: undefined, - slug: "page", }, }, ]