Skip to content

Commit 6102aea

Browse files
committed
test2
1 parent 3ade967 commit 6102aea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ outputFiles:
135135
it("test failed validateOutputDirectory", async () => {
136136
const { generateBuildOutput, validateOutputDirectory } = await importUtils;
137137
const files = {
138+
// .next/standalone/.next/ must be created beforehand otherwise
139+
// generateBuildOutput will attempt to copy
140+
// .next/ into .next/standalone/.next
141+
".next/standalone/.next/package.json": "",
138142
".next/standalone/notserver.js": "",
139143
".next/static/staticfile": "",
140144
".next/routes-manifest.json": `{
@@ -162,6 +166,10 @@ outputFiles:
162166
it("expects directories and other files to be copied over", async () => {
163167
const { generateBuildOutput, validateOutputDirectory } = await importUtils;
164168
const files = {
169+
// .next/standalone/.next/ must be created beforehand otherwise
170+
// generateBuildOutput will attempt to copy
171+
// .next/ into .next/standalone/.next
172+
".next/standalone/.next/package.json": "",
165173
".next/standalone/server.js": "",
166174
".next/static/staticfile": "",
167175
"public/publicfile": "",
@@ -188,9 +196,15 @@ outputFiles:
188196

189197
const expectedFiles = {
190198
".next/standalone/.next/static/staticfile": "",
199+
".next/static/staticfile": "",
191200
".next/standalone/server.js": "",
192201
".next/standalone/public/publicfile": "",
193202
".next/standalone/extrafile": "",
203+
".next/routes-manifest.json": `{
204+
"headers":[],
205+
"rewrites":[],
206+
"redirects":[]
207+
}`,
194208
};
195209
validateTestFiles(tmpDir, expectedFiles);
196210
});

0 commit comments

Comments
 (0)