Skip to content

Instantly share code, notes, and snippets.

@pauleveritt
Created April 17, 2024 17:40
Show Gist options
  • Select an option

  • Save pauleveritt/ae332543b07443abb765566ae74eb849 to your computer and use it in GitHub Desktop.

Select an option

Save pauleveritt/ae332543b07443abb765566ae74eb849 to your computer and use it in GitHub Desktop.

Revisions

  1. pauleveritt created this gist Apr 17, 2024.
    11 changes: 11 additions & 0 deletions site.test.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    test("should load an Eleventy site", async () => {
    const elev = new Eleventy("./", "./_site", {
    dir: {
    includes: "my_includes",
    layouts: "my_layouts",
    },
    });
    await elev.init();
    const d = elev.config.dir;
    expect(elev.config.dir.includes).toEqual("my_includes");
    });