[cli] Fix failing tests after Node 18 default change (#8950)

This commit is contained in:
Nathan Rajlich
2022-11-21 11:39:32 -08:00
committed by GitHub
parent 26ea6b8860
commit 13bfc29cec
19 changed files with 7224 additions and 33990 deletions

View File

@@ -3,9 +3,9 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"react": "^16.8.6", "react": "18.2.0",
"react-dom": "^16.8.6", "react-dom": "18.2.0",
"react-scripts": "3.0.1" "react-scripts": "5.0.1"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",

File diff suppressed because it is too large Load Diff

View File

@@ -8,5 +8,8 @@
}, },
"dependencies": { "dependencies": {
"gridsome": "0.7.23" "gridsome": "0.7.23"
},
"engines": {
"node": "14.x"
} }
} }

View File

@@ -6,8 +6,8 @@
"build": "next build" "build": "next build"
}, },
"dependencies": { "dependencies": {
"next": "^9.0.0", "next": "13.0.4",
"react": "^16.7.0", "react": "18.2.0",
"react-dom": "^16.7.0" "react-dom": "18.2.0"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,8 @@
{ {
"private": true, "private": true,
"dependencies": { "dependencies": {
"next": "9.5.3", "next": "13.0.4",
"react": "16.13.1", "react": "18.2.0",
"react-dom": "16.13.1" "react-dom": "18.2.0"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -6,8 +6,8 @@
"build": "next build" "build": "next build"
}, },
"dependencies": { "dependencies": {
"next": "^9.1.1", "next": "13.0.4",
"react": "^16.7.0", "react": "18.2.0",
"react-dom": "^16.7.0" "react-dom": "18.2.0"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +1,5 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/types/global" /> /// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@@ -7,13 +7,13 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"next": "^9.3.4", "next": "13.0.4",
"react": "^16.13.1", "react": "18.2.0",
"react-dom": "^16.13.1" "react-dom": "18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "14.0.9", "@types/node": "18.x",
"@types/react": "^16.9.32", "@types/react": "18.0.25",
"typescript": "^3.8.3" "typescript": "4.9.3"
} }
} }

View File

@@ -18,7 +18,8 @@
"paths": { "paths": {
"@components/*": ["components/*"], "@components/*": ["components/*"],
"@lib/*": ["lib/*"] "@lib/*": ["lib/*"]
} },
"incremental": true
}, },
"exclude": ["node_modules", "api"], "exclude": ["node_modules", "api"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +1,5 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/types/global" /> /// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@@ -7,13 +7,13 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"next": "^9.3.4", "next": "13.0.4",
"react": "^16.13.1", "react": "18.2.0",
"react-dom": "^16.13.1" "react-dom": "18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "14.0.9", "@types/node": "18.x",
"@types/react": "^16.9.32", "@types/react": "18.0.25",
"typescript": "^3.8.3" "typescript": "4.9.3"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
{
"name": "lambda-with-128-memory",
"private": true
}

View File

@@ -1 +1,7 @@
{ "functions": { "api/**/*.js": { "memory": 128 } } } {
"functions": {
"api/**/*.js": {
"memory": 128
}
}
}

View File

@@ -949,7 +949,6 @@ describe('build', () => {
); );
expect(vcConfig).toMatchObject({ expect(vcConfig).toMatchObject({
handler: 'api/memory.js', handler: 'api/memory.js',
runtime: 'nodejs16.x',
memory: 128, memory: 128,
environment: {}, environment: {},
launcherType: 'Nodejs', launcherType: 'Nodejs',