Skip to content

Commit b55194b

Browse files
authored
chore: fix the deploy test case (#7078)
1 parent 7cde161 commit b55194b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/integration/deploy-server/tests/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,9 @@ exports[`deploy support server when deploy target is vercel 1`] = `
4545

4646
exports[`deploy support server when deploy target is vercel 2`] = `
4747
{
48-
"default": {
49-
"handler": "index.js",
50-
"launcherType": "Nodejs",
51-
"runtime": "nodejs16.x",
52-
"shouldAddHelpers": false,
53-
"supportsResponseStreaming": true,
54-
},
5548
"handler": "index.js",
5649
"launcherType": "Nodejs",
57-
"runtime": "nodejs16.x",
50+
"runtime": Any<String>,
5851
"shouldAddHelpers": false,
5952
"supportsResponseStreaming": true,
6053
}

tests/integration/deploy-server/tests/index.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ describe('deploy', () => {
6363
expect(await fse.pathExists(publicDirectory)).toBe(true);
6464
expect(await fse.pathExists(bootstrapFile)).toBe(true);
6565
expect(config).toMatchSnapshot();
66-
expect(funcsConfig).toMatchSnapshot();
66+
expect({
67+
...funcsConfig.default,
68+
runtime: expect.any(String),
69+
}).toMatchSnapshot();
6770
});
6871

6972
test('support server when deploy target is netlify', async () => {

0 commit comments

Comments
 (0)