fix: coerce license to string #907
Annotations
2 errors
src/get-packument.test.ts > getPackument:
src/get-packument.test.ts#L44
AssertionError: promise rejected "ZodError: [
{
"code": "invalid_type… { …(3) }" instead of resolving
❯ src/get-packument.test.ts:44:33
Caused by: ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.0.1",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.0.11",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.0.3",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.0.4",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.1.0",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.1.1",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.1.2",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.1.3",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.2.0",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.2.1",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.3.0",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.3.1",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.3.2",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.4.0",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.5.0",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.6.0",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.6.1",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.6.2",
"homepage"
],
"message": "Expected string, received array"
},
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"versions",
"0.6.3",
"homepage"
],
"message": "Expected strin
|
build
Process completed with exit code 1.
|