Skip to content

Commit e0774ff

Browse files
dependabot[bot]nicojs
authored andcommitted
chore(deps): update log4js requirement from ~3.0.0 to ~4.0.2 (#1359)
* chore(deps): update log4js requirement from ~3.0.0 to ~4.0.2 Updates the requirements on [log4js](https://github.com/log4js-node/log4js-node) to permit the latest version. - [Release notes](https://github.com/log4js-node/log4js-node/releases) - [Changelog](https://github.com/log4js-node/log4js-node/blob/master/docs/v3-changes.md) - [Commits](https://github.com/log4js-node/log4js-node/commits/v4.0.2) Signed-off-by: dependabot[bot] <support@dependabot.com> * test(child process proxy): update tests of child process proxy to use flatted
1 parent 45c2852 commit e0774ff

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/stryker/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"inquirer": "~6.2.0",
6363
"istanbul-lib-instrument": "~3.1.0",
6464
"lodash": "~4.17.4",
65-
"log4js": "~3.0.0",
65+
"log4js": "~4.0.2",
6666
"mkdirp": "~0.5.1",
6767
"prettier": "~1.16.1",
6868
"progress": "~2.0.0",
@@ -83,6 +83,7 @@
8383
"@types/node": "~10.11.4",
8484
"@types/prettier": "^1.15.2",
8585
"@types/progress": "~2.0.1",
86+
"flatted": "^2.0.0",
8687
"stryker-api": "^0.24.0"
8788
},
8889
"peerDependencies": {

packages/stryker/test/helpers/LoggingServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as net from 'net';
22
import * as log4js from 'log4js';
33
import { Subscriber, Observable } from 'rxjs';
4+
import { parse } from 'flatted';
45

56
export default class LoggingServer {
67

@@ -14,7 +15,7 @@ export default class LoggingServer {
1415
socket.on('data', data => {
1516
// Log4js also sends "__LOG4JS__" to signal an event end. Ignore those.
1617
const logEventStrings = data.toString().split('__LOG4JS__').filter(Boolean);
17-
const loggingEvents: log4js.LoggingEvent[] = logEventStrings.map(logEventString => JSON.parse(logEventString));
18+
const loggingEvents: log4js.LoggingEvent[] = logEventStrings.map(logEventString => parse(logEventString));
1819
loggingEvents.forEach(event => this.subscriber && this.subscriber.next(event));
1920
});
2021
socket.on('error', () => {

packages/stryker/test/integration/child-proxy/ChildProcessProxy.it.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import OutOfMemoryError from '../../../src/child-proxy/OutOfMemoryError';
1616
import ChildProcessCrashedError from '../../../src/child-proxy/ChildProcessCrashedError';
1717
import { testInjector } from '@stryker-mutator/test-helpers';
1818
import { commonTokens } from 'stryker-api/plugin';
19-
describe('ChildProcessProxy', () => {
19+
20+
describe(ChildProcessProxy.name, () => {
2021

2122
let sut: ChildProcessProxy<Echo>;
2223
let loggingServer: LoggingServer;

0 commit comments

Comments
 (0)