Skip to content

Commit

Permalink
separator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leoortizz committed Apr 22, 2024
1 parent d4889d6 commit 9e1a0c5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/webframeworks-deploy-tests/tests.ts
@@ -1,6 +1,6 @@
import { expect, use } from "chai";
import * as glob from "glob";
import { join, normalize, relative } from "path";
import { join, normalize, relative, sep } from "path";
import { readFileSync } from "fs";
import fetch from "node-fetch";
import type { NextConfig } from "next";
Expand Down Expand Up @@ -371,16 +371,16 @@ describe("webframeworks", function (this) {
.map((it) => (it.startsWith("/") ? it.substring(1) : it));

const EXPECTED_PATTERNS = [
join(NEXT_BASE_PATH, "_next", "static", "chunks", "[^-]+-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "app", "layout-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "main-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "main-app-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "pages", "_app-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "pages", "_error-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "pages", "index-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "polyfills-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "chunks", "webpack-[^.]+.js"),
join(NEXT_BASE_PATH, "_next", "static", "css", "[^.]+.css"),
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}[^-]+-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}app"${sep}layout-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}main-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}main-app-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}pages${sep}_app-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}pages${sep}_error-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}pages${sep}index-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}polyfills-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}chunks${sep}webpack-[^.]+.js`,
String.raw`${NEXT_BASE_PATH}${sep}_next${sep}static${sep}css${sep}[^.]+.css`,
].map((it) => new RegExp(it));

const files = await getFilesListFromDir(`${NEXT_OUTPUT_PATH}/hosting`);
Expand Down

0 comments on commit 9e1a0c5

Please sign in to comment.