Skip to content

Commit

Permalink
Merge pull request #70 from lifeomic/upgrade-deps
Browse files Browse the repository at this point in the history
feat: upgrade deps
  • Loading branch information
Shawn Zhu authored Jul 10, 2023
2 parents 297cefb + b254f56 commit 2ec57f9
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 122 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Test and Build
run: |
yarn
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"one-schema": "./bin/cli.js"
},
"dependencies": {
"@lifeomic/alpha": "^5.1.1",
"@lifeomic/alpha": "^5.1.3",
"@types/json-schema": "^7.0.11",
"ajv": "^8.11.0",
"axios": "^0.27.2",
Expand All @@ -28,14 +28,14 @@
},
"devDependencies": {
"@koa/router": "^12.0.0",
"@lifeomic/eslint-config-standards": "^2.1.1",
"@lifeomic/eslint-config-standards": "^3.2.0",
"@lifeomic/typescript-config": "^1.0.3",
"@types/jest": "^27.5.1",
"@types/js-yaml": "^4.0.5",
"@types/koa": "^2.13.4",
"@types/koa-bodyparser": "^4.3.7",
"@types/koa__router": "^8.0.11",
"@types/node": "^14.0.0",
"@types/node": "^16.0.0",
"@types/tmp": "^0.2.3",
"@types/uuid": "^9.0.1",
"@types/yargs": "^17.0.10",
Expand Down
2 changes: 1 addition & 1 deletion src/koa.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('using unsupported methods throws immediately', () => {
introspection: undefined,
},
);
}).toThrowError('Unsupported method detected: OPTIONS /post');
}).toThrow('Unsupported method detected: OPTIONS /post');
});

test('setting a 200-level response code overrides the response', async () => {
Expand Down
12 changes: 6 additions & 6 deletions src/meta-schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ describe('validateSchema', () => {
},
},
}),
).toThrowError('Encountered an invalid ref: bogus-ref');
).toThrow('Encountered an invalid ref: bogus-ref');
});

test('checks for invalid refs', () => {
Expand All @@ -287,7 +287,7 @@ describe('validateSchema', () => {
},
},
}),
).toThrowError('Encountered an invalid ref: #/definitions/Bogus');
).toThrow('Encountered an invalid ref: #/definitions/Bogus');
});

test('checks for object types in Request schemas', () => {
Expand All @@ -301,7 +301,7 @@ describe('validateSchema', () => {
},
},
}),
).toThrowError(
).toThrow(
'Detected a non-object Request schema for POST posts. Request schemas must be objects.',
);
});
Expand All @@ -322,7 +322,7 @@ describe('validateSchema', () => {
},
},
}),
).toThrowError(
).toThrow(
'Detected a non-object Request schema for POST posts. Request schemas must be objects.',
);
});
Expand All @@ -344,7 +344,7 @@ describe('validateSchema', () => {
},
},
}),
).toThrowError(
).toThrow(
'The id parameter was declared as a path parameter and a Request property for PUT posts/:id. Rename either the path parameter or the request property to avoid a collision.',
);
});
Expand All @@ -369,7 +369,7 @@ describe('validateSchema', () => {
},
},
}),
).toThrowError(
).toThrow(
'The id parameter was declared as a path parameter and a Request property for PUT posts/:id. Rename either the path parameter or the request property to avoid a collision.',
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ test('declaring multiple routes with the same name results in an error', () => {
request: z.object({}),
response: z.object({}),
});
}).toThrowError(
}).toThrow(
'Multiple endpoints were declared with the same name "createSomething". Each endpoint must have a unique name.',
);
});
Expand Down
Loading

0 comments on commit 2ec57f9

Please sign in to comment.