fix!: preserve type of string values when storing #505
Annotations
10 errors and 1 warning
Run pnpm vitest --coverage:
test/server.test.ts#L35
AssertionError: expected '"bar"' to be 'bar' // Object.is equality
Expected: "bar"
Received: ""bar""
❯ test/server.test.ts:35:43
|
Run pnpm vitest --coverage:
test/drivers/cloudflare-kv-binding.test.ts#L35
Error: Snapshot `drivers: cloudflare-kv > snapshot 1` mismatched
- Expected
+ Received
{
"base:data:raw.bin": "base64:AQID",
- "base:data:serialized1.json": "SERIALIZED",
+ "base:data:serialized1.json": ""SERIALIZED"",
- "base:data:serialized2.json": {
- "serializedObj": "works",
- },
+ "base:data:serialized2.json": "{"serializedObj":"works"}",
- "base:data:test.json": {
- "json": "works",
- },
+ "base:data:test.json": "{"json":"works"}",
- "base:data:true.json": true,
+ "base:data:true.json": "true",
- "base:my-false-flag": false,
+ "base:my-false-flag": "false",
- "base:s1:a": "test_data",
+ "base:s1:a": ""test_data"",
- "base:s2:a": "test_data",
+ "base:s2:a": ""test_data"",
- "base:s3:a": "test_data",
+ "base:s3:a": ""test_data"",
- "base:t:1": "test_data_t1",
+ "base:t:1": ""test_data_t1"",
- "base:t:2": "test_data_t2",
+ "base:t:2": ""test_data_t2"",
- "base:t:3": "test_data_t3",
+ "base:t:3": ""test_data_t3"",
- "base:v1:a": "test_data_v1:a",
+ "base:v1:a": ""test_data_v1:a"",
- "base:v2:a": "test_data_v2:a",
+ "base:v2:a": ""test_data_v2:a"",
- "base:v3:a": "test_data_v3:a?q=1",
+ "base:v3:a": ""test_data_v3:a?q=1"",
- "base:zero": 0,
+ "base:zero": "0",
}
❯ test/drivers/cloudflare-kv-binding.test.ts:35:49
|
Run pnpm vitest --coverage:
test/drivers/fs-lite.test.ts#L14
AssertionError: expected '"test_data"' to be 'test_data' // Object.is equality
Expected: "test_data"
Received: ""test_data""
❯ test/drivers/fs-lite.test.ts:14:62
|
Run pnpm vitest --coverage:
test/drivers/fs.test.ts#L14
AssertionError: expected '"test_data"' to be 'test_data' // Object.is equality
Expected: "test_data"
Received: ""test_data""
❯ test/drivers/fs.test.ts:14:62
|
Run pnpm vitest --coverage:
test/drivers/utils.ts#L22
AssertionError: expected '"works"' to be 'works' // Object.is equality
Expected: "works"
Received: ""works""
❯ test/drivers/utils.ts:22:50
|
Run pnpm vitest --coverage:
test/drivers/utils.ts#L29
AssertionError: expected [ 'initial' ] to match object []
- Expected
+ Received
- Array []
+ Array [
+ "initial",
+ ]
❯ test/drivers/utils.ts:29:41
|
Run pnpm vitest --coverage:
test/drivers/utils.ts#L37
AssertionError: expected '"test_data"' to be 'test_data' // Object.is equality
Expected: "test_data"
Received: ""test_data""
❯ test/drivers/utils.ts:37:47
|
Run pnpm vitest --coverage:
test/drivers/utils.ts#L42
AssertionError: expected [ 'initial', 's1:a', 's2:a', 's3:a' ] to match object [ 's1:a', 's2:a', 's3:a' ]
- Expected
+ Received
Array [
+ "initial",
"s1:a",
"s2:a",
"s3:a",
]
❯ test/drivers/utils.ts:42:63
|
Run pnpm vitest --coverage:
test/drivers/utils.ts#L52
AssertionError: expected '{"json":"works"}' to match object { json: 'works' }
- Expected:
Object {
"json": "works",
}
+ Received:
"{\"json\":\"works\"}"
❯ test/drivers/utils.ts:52:58
|
Run pnpm vitest --coverage:
test/drivers/utils.ts#L59
AssertionError: expected 'true' to be true // Object.is equality
- Expected:
true
+ Received:
"true"
❯ test/drivers/utils.ts:59:58
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading