Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore(deps): update ts & jest (#223)
Browse files Browse the repository at this point in the history
* chore(deps): update ts & jest

* chore: use cimg images

* chore: we no longer use CodeClimate
  • Loading branch information
P0lip authored Jul 12, 2023
1 parent 151e204 commit f06116a
Show file tree
Hide file tree
Showing 5 changed files with 1,525 additions and 1,333 deletions.
19 changes: 3 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,21 @@ jobs:
# https://nodejs.org/en/about/releases/
test_node_lts:
docker:
- image: circleci/node:lts
- image: cimg/node:lts
steps:
- checkout
- run:
name: Download cc-test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: cc-before
command: |
./cc-test-reporter before-build
- install_and_test
- run:
name: cc-after
command: |
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?

test_node_latest:
docker:
- image: circleci/node:latest
- image: cimg/node:current
steps:
- checkout
- install_and_test

release:
docker:
- image: circleci/node:lts
- image: cimg/node:lts
steps:
- checkout
- run: yarn
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@
"fast-memoize": "^2.5.2",
"immer": "^9.0.6",
"lodash": "^4.17.21",
"tslib": "^2.3.1",
"tslib": "^2.6.0",
"urijs": "^1.19.11"
},
"devDependencies": {
"@stoplight/scripts": "^5",
"@types/jest": "^24.9.0",
"@types/lodash": "^4.14.178",
"benchmark": "^2.1",
"jest": "^24.9",
"ts-jest": "^24.3.0",
"jest": "^29.6.1",
"ts-jest": "^29.1.1",
"tslint": "^5.20",
"tslint-config-stoplight": "~1.4",
"typescript": "3.7.5"
"typescript": "~4.9.5"
},
"lint-staged": {
"*.{ts,tsx}$": [
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/__snapshots__/resolver.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`resolver print tree circular refs 1`] = `
Array [
[
"#/ref3",
"#/ref1",
"#/ref2",
]
`;

exports[`resolver print tree indirect circular refs 1`] = `
Array [
[
"custom://obj3/",
"custom://obj2/",
"custom://obj1/",
]
`;

exports[`resolver print tree should handle local refs 1`] = `
Array [
[
"#/definitions/bear",
]
`;
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/benchmark.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { ResolveRunner } = require('../runner');
describe.skip('benchmark', () => {
test('huge circular resolve', async () => {
const suite = new Benchmark.Suite();
await new Promise(resolve => {
await new Promise<void>(resolve => {
// add tests
suite
.add('huge circular resolve', async () => {
Expand Down Expand Up @@ -96,7 +96,7 @@ describe.skip('benchmark', () => {

const sharedRunner = new ResolveRunner();

await new Promise(resolve => {
await new Promise<void>(resolve => {
// add tests
suite
.add('crawler', () => {
Expand Down
Loading

0 comments on commit f06116a

Please sign in to comment.