Skip to content

Commit

Permalink
updates to renovate.json -- don't pin engines, allow Jest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney committed Sep 6, 2023
1 parent f956390 commit c433c27
Show file tree
Hide file tree
Showing 6 changed files with 707 additions and 529 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -70,7 +70,7 @@
"eslint-plugin-no-explicit-type-exports": "^0.12.1",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "8.0.3",
"jest": "28.1.2",
"jest": "^29.6.4",
"node-mocks-http": "^1.12.2",
"nodemon": "3.0.1",
"patch-package": "^8.0.0",
Expand All @@ -88,6 +88,7 @@
"fs-extra": "^11.0.0",
"handlebars": "^4.7.7",
"http-terminator": "^3.2.0",
"jest-environment-jsdom": "^29.6.4",
"js-yaml": "^4.1.0",
"json-schema-faker": "^0.5.0-rcv.44",
"json-schema-ref-parser": "^9.0.9",
Expand Down
4 changes: 2 additions & 2 deletions renovate.json
Expand Up @@ -9,8 +9,8 @@
"automerge": true,
"stabilityDays": 3,
"prCreation": "not-pending",
"ignoreDeps": ["jest", "jest-environment-jsdom"],
"rangeStrategy": "pin"
"rangeStrategy": "pin",
"depTypeList": ["dependencies", "devDependencies"]
},
{
"matchManagers": ["github-actions"],
Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/black-box.test.js.snap
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`black box test compiles kitty.ts 1`] = `
Object {
"data": Array [
{
"data": [
101,
120,
112,
Expand Down Expand Up @@ -81,8 +81,8 @@ Object {
`;

exports[`black box test creates a file for the /hello/kitty path 1`] = `
Object {
"data": Array [
{
"data": [
105,
109,
112,
Expand Down Expand Up @@ -236,4 +236,4 @@ Object {
}
`;

exports[`black box test responds to a GET request 1`] = `"<img src=\\"https://upload.wikimedia.org/wikipedia/en/0/05/Hello_kitty_character_portrait.png\\">"`;
exports[`black box test responds to a GET request 1`] = `"<img src="https://upload.wikimedia.org/wikipedia/en/0/05/Hello_kitty_character_portrait.png">"`;
Expand Up @@ -18,7 +18,7 @@ exports[`an OperationTypeCoder falls back to root level produces (OpenAPI 2) 1`]
[statusCode in HttpStatusCode]: {
headers: {};
content: {
\\"text/plain\\": {
"text/plain": {
schema: Type;
};
};
Expand All @@ -28,10 +28,10 @@ exports[`an OperationTypeCoder falls back to root level produces (OpenAPI 2) 1`]
}) =>
| {
status: number | undefined;
contentType?: \\"text/plain\\";
contentType?: "text/plain";
body?: Type;
}
| { status: 415; contentType: \\"text/plain\\"; body: string }
| { status: 415; contentType: "text/plain"; body: string }
| void;
"
`;
Expand All @@ -45,32 +45,32 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2 wit
context,
proxy,
}: {
query: { \\"name?\\": string };
path: { \\"id?\\": string };
header: { \\"name?\\": string };
query: { "name?": string };
path: { "id?": string };
header: { "name?": string };
body: Type;
context: typeof default;
response: ResponseBuilderFactory<{
200: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
};
400: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
};
[statusCode in Exclude<HttpStatusCode, 200 | 400>]: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
Expand All @@ -80,20 +80,20 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2 wit
}) =>
| {
status: 200;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| {
status: 400;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| {
status: number | undefined;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| { status: 415; contentType: \\"text/plain\\"; body: string }
| { status: 415; contentType: "text/plain"; body: string }
| void;
"
`;
Expand All @@ -107,32 +107,32 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2) 1`
context,
proxy,
}: {
query: { \\"name?\\": string };
path: { \\"id?\\": string };
header: { \\"name?\\": string };
query: { "name?": string };
path: { "id?": string };
header: { "name?": string };
body: Type;
context: typeof default;
response: ResponseBuilderFactory<{
200: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
};
400: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
};
[statusCode in Exclude<HttpStatusCode, 200 | 400>]: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
Expand All @@ -142,20 +142,20 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2) 1`
}) =>
| {
status: 200;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| {
status: 400;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| {
status: number | undefined;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| { status: 415; contentType: \\"text/plain\\"; body: string }
| { status: 415; contentType: "text/plain"; body: string }
| void;
"
`;
Expand All @@ -169,32 +169,32 @@ exports[`an OperationTypeCoder generates a complex post operation 1`] = `
context,
proxy,
}: {
query: { \\"name?\\": string };
path: { \\"id?\\": string };
header: { \\"name?\\": string };
query: { "name?": string };
path: { "id?": string };
header: { "name?": string };
body: Type;
context: typeof default;
response: ResponseBuilderFactory<{
200: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
};
400: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
};
[statusCode in Exclude<HttpStatusCode, 200 | 400>]: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
Expand All @@ -204,20 +204,20 @@ exports[`an OperationTypeCoder generates a complex post operation 1`] = `
}) =>
| {
status: 200;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| {
status: 400;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| {
status: number | undefined;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| { status: 415; contentType: \\"text/plain\\"; body: string }
| { status: 415; contentType: "text/plain"; body: string }
| void;
"
`;
Expand All @@ -240,7 +240,7 @@ exports[`an OperationTypeCoder generates a simple get operation (OpenAPI 2) 1`]
[statusCode in HttpStatusCode]: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
Expand All @@ -250,10 +250,10 @@ exports[`an OperationTypeCoder generates a simple get operation (OpenAPI 2) 1`]
}) =>
| {
status: number | undefined;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| { status: 415; contentType: \\"text/plain\\"; body: string }
| { status: 415; contentType: "text/plain"; body: string }
| void;
"
`;
Expand All @@ -276,7 +276,7 @@ exports[`an OperationTypeCoder generates a simple get operation 1`] = `
[statusCode in HttpStatusCode]: {
headers: {};
content: {
\\"application/json\\": {
"application/json": {
schema: Type;
};
};
Expand All @@ -286,10 +286,10 @@ exports[`an OperationTypeCoder generates a simple get operation 1`] = `
}) =>
| {
status: number | undefined;
contentType?: \\"application/json\\";
contentType?: "application/json";
body?: Type;
}
| { status: 415; contentType: \\"text/plain\\"; body: string }
| { status: 415; contentType: "text/plain"; body: string }
| void;
"
`;
Expand Up @@ -6,7 +6,7 @@ exports[`a ParametersTypeCoder generates type never when there is no match 1`] =
`;

exports[`a ParametersTypeCoder generates types for parameters (OAS2): header 1`] = `
"type TestType = { \\"name?\\": string };
"type TestType = { "name?": string };
"
`;

Expand All @@ -16,12 +16,12 @@ exports[`a ParametersTypeCoder generates types for parameters (OAS2): path 1`] =
`;

exports[`a ParametersTypeCoder generates types for parameters (OAS2): query 1`] = `
"type TestType = { \\"name?\\": string; \\"age?\\": string };
"type TestType = { "name?": string; "age?": string };
"
`;

exports[`a ParametersTypeCoder generates types for parameters: header 1`] = `
"type TestType = { \\"name?\\": string };
"type TestType = { "name?": string };
"
`;

Expand All @@ -31,6 +31,6 @@ exports[`a ParametersTypeCoder generates types for parameters: path 1`] = `
`;

exports[`a ParametersTypeCoder generates types for parameters: query 1`] = `
"type TestType = { \\"name?\\": string; \\"age?\\": string };
"type TestType = { "name?": string; "age?": string };
"
`;

0 comments on commit c433c27

Please sign in to comment.