Skip to content

Commit 65170e2

Browse files
authored
use vercel-dev-builder for running tests (#88)
1 parent d5a0ca4 commit 65170e2

File tree

12 files changed

+67
-7
lines changed

12 files changed

+67
-7
lines changed

examples/cron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"keywords": [],
6-
"license": "ISC",
6+
"license": "MIT",
77
"author": "",
88
"main": "index.js",
99
"scripts": {

examples/simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"keywords": [],
6-
"license": "ISC",
6+
"license": "MIT",
77
"author": "",
88
"main": "index.js",
99
"scripts": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "rimraf dist/ && tsc --removeComments",
1717
"prepare": "husky install",
1818
"prepublishOnly": "tsc",
19-
"test": "jest",
19+
"test": "pnpm run build && jest",
2020
"typecheck": "tsc --noEmit"
2121
},
2222
"prettier": "@vercel/style-guide/prettier",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "01-include-files",
3+
"version": "1.0.0",
4+
"description": "",
5+
"keywords": [],
6+
"license": "MIT",
7+
"author": "",
8+
"main": "../../../dist/index.js",
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
}
12+
}

test/fixtures/01-include-files/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.rs": {
4-
"runtime": "vercel-rust@4.0.0-beta.2",
4+
"runtime": "vercel-dev-builder@0.0.5",
55
"includeFiles": "static/**/*.{txt,svg}"
66
}
77
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "02-with-utility",
3+
"version": "1.0.0",
4+
"description": "",
5+
"keywords": [],
6+
"license": "MIT",
7+
"author": "",
8+
"main": "../../../dist/index.js",
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "03-with-function",
3+
"version": "1.0.0",
4+
"description": "",
5+
"keywords": [],
6+
"license": "MIT",
7+
"author": "",
8+
"main": "../../../dist/index.js",
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
}
12+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.rs": {
4-
"runtime": "vercel-rust@4.0.0-beta.2"
4+
"runtime": "vercel-dev-builder@0.0.5"
55
}
66
}
77
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "04-with-parameter",
3+
"version": "1.0.0",
4+
"description": "",
5+
"keywords": [],
6+
"license": "MIT",
7+
"author": "",
8+
"main": "../../../dist/index.js",
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
}
12+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.rs": {
4-
"runtime": "vercel-rust@4.0.0-beta.2"
4+
"runtime": "vercel-dev-builder@0.0.5"
55
}
66
}
77
}

0 commit comments

Comments
 (0)