message: test: use sls-next-build for buildDir test variable
diff: @@ -26,7 +26,7 @@ describe("getNextPagesFromBuildDir", () => {
  it("should return an empty array when there are no pages", () => {
  expect.assertions(1);
  - const buildDir = path.normalize("/path/to/build/dir");
  + const buildDir = path.normalize("path/to/sls-next-build");
  const getPagesPromise = getNextPagesFromBuildDir(buildDir).then(
  nextPages => {
  @@ -42,15 +42,15 @@ describe("getNextPagesFromBuildDir", () => {
  it("should return two next pages", () => {
  expect.assertions(5);
  - const buildDir = "build";
  + const buildDir = "sls-next-build";
  const resolvedBuildDir = path.resolve(buildDir);
  const promise = getNextPagesFromBuildDir(buildDir).then(nextPages => {
  expect(nextPages).toHaveLength(2);
  expect(nextPages[0].pageName).toEqual("index");
  - expect(nextPages[0].pagePath).toEqual(path.join("build", "index.js"));
  + expect(nextPages[0].pagePath).toEqual(path.join(buildDir, "index.js"));
  expect(nextPages[1].pageName).toEqual("about");
  - expect(nextPages[1].pagePath).toEqual(path.join("build", "about.js"));
  + expect(nextPages[1].pagePath).toEqual(path.join(buildDir, "about.js"));
  });
  mockedStream.emit("data", {
  @@ -75,7 +75,7 @@ describe("getNextPagesFromBuildDir", () => {
  about: aboutPageConfigOverride
  };
  - const buildDir = path.normalize("/path/to/build");
  + const buildDir = path.normalize("/path/to/sls-next-build");
  const promise = getNextPagesFromBuildDir(buildDir, pageConfig).then(
  nextPages => {
  @@ -113,7 +113,7 @@ describe("getNextPagesFromBuildDir", () => {
  it("should skip _app and _document pages", () => {
  expect.assertions(2);
  - const buildDir = path.normalize("./build");
  + const buildDir = path.normalize("./sls-next-build");
  const resolvedBuildDir = path.resolve(buildDir);
  const promise = getNextPagesFromBuildDir(buildDir).then(nextPages => {
  @@ -136,7 +136,7 @@ describe("getNextPagesFromBuildDir", () => {
  it("should skip compatLayer file", () => {
  expect.assertions(2);
  - const buildDir = path.normalize("/path/to/build");
  + const buildDir = path.normalize("/path/to/sls-next-build");
  const promise = getNextPagesFromBuildDir(buildDir).then(nextPages => {
  expect(nextPages).toHaveLength(1);
  @@ -153,7 +153,7 @@ describe("getNextPagesFromBuildDir", () => {
  it("should handle nested pages", () => {
  expect.assertions(5);
  - const buildDir = path.normalize("./build");
  + const buildDir = path.normalize("./sls-next-build");
  const resolvedBuildDir = path.resolve(buildDir);
  const promise = getNextPagesFromBuildDir(buildDir).then(nextPages => {
  @@ -182,7 +182,7 @@ describe("getNextPagesFromBuildDir", () => {
  it("should skip page directories", () => {
  expect.assertions(1);
  - const buildDir = path.normalize("./build");
  + const buildDir = path.normalize("./sls-next-build");
  const resolvedBuildDir = path.resolve(buildDir);
  fs.lstatSync.mockReturnValue({ isDirectory: () => true });
  