Skip to content

Commit 3ade967

Browse files
committed
test for copies
1 parent a157af3 commit 3ade967

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/@apphosting/adapter-nextjs/src/bin/build.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ describe("build commands", () => {
3232
it("expects all output bundle files to be generated", async () => {
3333
const { generateBuildOutput, validateOutputDirectory } = await importUtils;
3434
const files = {
35+
// .next/standalone/.next/ must be created beforehand otherwise
36+
// generateBuildOutput will attempt to copy
37+
// .next/ into .next/standalone/.next
38+
".next/standalone/.next/package.json": "",
3539
".next/standalone/server.js": "",
3640
".next/static/staticfile": "",
3741
".next/routes-manifest.json": `{
@@ -53,7 +57,13 @@ describe("build commands", () => {
5357

5458
const expectedFiles = {
5559
".next/standalone/.next/static/staticfile": "",
60+
".next/static/staticfile": "",
5661
".next/standalone/server.js": "",
62+
".next/routes-manifest.json": `{
63+
"headers":[],
64+
"rewrites":[],
65+
"redirects":[]
66+
}`,
5767
".apphosting/bundle.yaml": `version: v1
5868
runConfig:
5969
runCommand: node .next/standalone/server.js

0 commit comments

Comments
 (0)