Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 89fb3dc

Browse files
committed
Port Miniflare 2's R2 tests
1 parent 973d3d6 commit 89fb3dc

File tree

7 files changed

+1213
-7
lines changed

7 files changed

+1213
-7
lines changed

ava.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const rewritePaths = Object.fromEntries(
99

1010
export default {
1111
files: ["packages/*/test/**/*.spec.ts"],
12-
timeout: "5m",
1312
nodeArguments: ["--no-warnings", "--experimental-vm-modules"],
1413
typescript: {
1514
compile: false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
"node": ">=16.13"
6161
},
6262
"volta": {
63-
"node": "18.2.0"
63+
"node": "16.13.0"
6464
}
6565
}

packages/tre/src/plugins/r2/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const R2PutRequestSchema = z
110110
customFields: RecordSchema.optional(), // (renamed in transform)
111111
httpFields: R2HttpFieldsSchema.optional(), // (renamed in transform)
112112
onlyIf: R2ConditionalSchema.optional(),
113-
md5: Base64DataSchema.optional(), // (intentionally base64, not hex) // TODO: make sure we're testing this is base64
113+
md5: Base64DataSchema.optional(), // (intentionally base64, not hex)
114114
sha1: HexDataSchema.optional(),
115115
sha256: HexDataSchema.optional(),
116116
sha384: HexDataSchema.optional(),

0 commit comments

Comments
 (0)