Skip to content

Commit

Permalink
chore: replace stale dependencies (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKarpiuk authored Aug 17, 2023
1 parent daf030b commit 8199d11
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 162 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,32 +130,6 @@ jobs:
node-version: 14
- run: bash ./__tests__/smoke/run-smoke.sh "npm i redoc redocly-cli.tgz" "npm run"

run-smoke--npm--node-12:
needs: prepare-smoke
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke/
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
- uses: actions/setup-node@v3
with:
node-version: 12
- run: bash ./__tests__/smoke/run-smoke.sh "npm i redocly-cli.tgz" "npm run"

run-smoke--npm--node-12--redoc:
needs: prepare-smoke
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke/
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
- uses: actions/setup-node@v3
with:
node-version: 12
- run: bash ./__tests__/smoke/run-smoke.sh "npm i redoc redocly-cli.tgz" "npm run"

run-smoke--yarn--node-20:
needs: prepare-smoke
runs-on: ubuntu-latest
Expand Down
158 changes: 44 additions & 114 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"redocly": "bin/cli.js"
},
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},
"engineStrict": true,
"scripts": {
Expand Down Expand Up @@ -38,26 +38,26 @@
"assert-node-version": "^1.0.3",
"chokidar": "^3.5.1",
"colorette": "^1.2.0",
"get-port-please": "^3.0.1",
"glob": "^7.1.6",
"glob-promise": "^3.4.0",
"handlebars": "^4.7.6",
"portfinder": "^1.0.26",
"redoc": "~2.0.0",
"semver": "^7.5.2",
"simple-websocket": "^9.0.0",
"yargs": "17.0.1",
"mobx": "^6.0.4",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"styled-components": "^5.1.1"
"redoc": "~2.0.0",
"semver": "^7.5.2",
"simple-websocket": "^9.0.0",
"styled-components": "^5.1.1",
"yargs": "17.0.1"
},
"devDependencies": {
"@types/configstore": "^5.0.1",
"@types/glob": "^8.1.0",
"@types/react": "^17.0.8",
"@types/react-dom": "^17.0.5",
"@types/semver": "^7.5.0",
"@types/styled-components": "^5.1.1",
"@types/yargs": "17.0.5",
"@types/semver": "^7.5.0",
"typescript": "^4.0.3"
}
}
4 changes: 0 additions & 4 deletions packages/cli/src/__tests__/commands/build-docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jest.mock('handlebars', () => ({
compile: jest.fn(() => jest.fn(() => '<html></html>')),
}));

jest.mock('mkdirp', () => ({
sync: jest.fn(),
}));

describe('build-docs', () => {
it('should return correct html and call function for ssr', async () => {
const result = await getPageHTML({}, '../some-path/openapi.yaml', {
Expand Down
Loading

1 comment on commit 8199d11

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 75.42% 3783/5016
🟡 Branches 66.33% 2098/3163
🟡 Functions 68.53% 636/928
🟡 Lines 75.57% 3533/4675

Test suite run success

623 tests passing in 91 suites.

Report generated by 🧪jest coverage report action from 8199d11

Please sign in to comment.