Skip to content

Commit

Permalink
build(deps): bump node.js from 16 to 18 (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed Feb 3, 2023
1 parent 4458a0a commit fbac2dd
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -30,7 +30,7 @@ jobs:
target: ['lint', 'format', 'build', 'test', 'e2e']
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- name: Set Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: 'npm'
registry-url: ${{ inputs.registry }}
scope: ${{ inputs.scope }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
install-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_REF }}
token: ${{ secrets.GPR_TOKEN }}
Expand All @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
needs: install-deps
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_REF }}
token: ${{ secrets.GPR_TOKEN }}
Expand All @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_REF }}
token: ${{ secrets.GPR_TOKEN }}
Expand All @@ -71,7 +71,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_REF }}
token: ${{ secrets.GPR_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.GPR_TOKEN }}

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@types/express": "^4.17.15",
"@types/har-format": "^1.2.8",
"@types/jest": "^29.2.4",
"@types/node": "~16.11.57",
"@types/node": "~18.11.18",
"@types/webpack": "^5.28.0",
"@types/webpack-node-externals": "^2.5.3",
"@types/ws": "^8.5.4",
Expand Down
6 changes: 0 additions & 6 deletions src/network/DefaultHarExporter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ describe('DefaultHarExporter', () => {
describe('write', () => {
it('should write the entry to the buffer', async () => {
// arrange
// @ts-expect-error type mismatch
when(streamMock.closed).thenReturn(false);
when(optionsSpy.filter).thenReturn(predicate);
predicate.mockReturnValue(false);
Expand All @@ -107,7 +106,6 @@ describe('DefaultHarExporter', () => {

it('should write the entry to the buffer if the predicate returns throws an error', async () => {
// arrange
// @ts-expect-error type mismatch
when(streamMock.closed).thenReturn(false);
when(optionsSpy.filter).thenReturn(predicate);
predicate.mockReturnValue(
Expand All @@ -125,7 +123,6 @@ describe('DefaultHarExporter', () => {
// arrange
const entry = { foo: 'bar' } as unknown as Entry;
const entryString = JSON.stringify(entry);
// @ts-expect-error type mismatch
when(streamMock.closed).thenReturn(false);
when(optionsSpy.transform).thenReturn(transform);
transform.mockReturnValue(Promise.resolve(entry));
Expand All @@ -139,7 +136,6 @@ describe('DefaultHarExporter', () => {

it('should skip the entry when the transformation is failed with an error', async () => {
// arrange
// @ts-expect-error type mismatch
when(streamMock.closed).thenReturn(false);
when(optionsSpy.transform).thenReturn(transform);
transform.mockReturnValue(
Expand All @@ -155,7 +151,6 @@ describe('DefaultHarExporter', () => {

it('should not write the entry to the buffer if the predicate returns true', async () => {
// arrange
// @ts-expect-error type mismatch
when(streamMock.closed).thenReturn(false);
when(optionsSpy.filter).thenReturn(predicate);
predicate.mockReturnValue(true);
Expand All @@ -169,7 +164,6 @@ describe('DefaultHarExporter', () => {

it('should not write the entry to the buffer if the buffer is closed', async () => {
// arrange
// @ts-expect-error type mismatch
when(streamMock.closed).thenReturn(true);
when(optionsSpy.filter).thenReturn(predicate);
predicate.mockReturnValue(false);
Expand Down
1 change: 0 additions & 1 deletion src/network/DefaultHarExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class DefaultHarExporter implements HarExporter {

const json = await this.serializeEntry(entry);

// @ts-expect-error type mismatch
if (!this.buffer.closed && json) {
this.buffer.write(`${json}${EOL}`);
}
Expand Down

0 comments on commit fbac2dd

Please sign in to comment.