diff --git a/packages/stryker-babel-transpiler/test/unit/BabelTranspilerSpec.ts b/packages/stryker-babel-transpiler/test/unit/BabelTranspilerSpec.ts index 7db686c36b..8223fad137 100644 --- a/packages/stryker-babel-transpiler/test/unit/BabelTranspilerSpec.ts +++ b/packages/stryker-babel-transpiler/test/unit/BabelTranspilerSpec.ts @@ -35,7 +35,7 @@ describe('BabelTranspiler', () => { describe('constructor', () => { - function arrangeHappyFlow(transformResult: babel.BabelFileResult & { ignored?: boolean } = { code: 'code' }) { + function arrangeHappyFlow() { babelConfigReaderMock.readConfig.returns(babelOptions); sut = new BabelTranspiler({ config, produceSourceMaps: false }); } diff --git a/packages/stryker-html-reporter/src/templates/sourceFile.tsx b/packages/stryker-html-reporter/src/templates/sourceFile.tsx index 996cc5719d..07f7d71cd7 100644 --- a/packages/stryker-html-reporter/src/templates/sourceFile.tsx +++ b/packages/stryker-html-reporter/src/templates/sourceFile.tsx @@ -130,7 +130,7 @@ function annotateCode(sourceFile: SourceFile, numberedMutants: NumberedMutant[]) + ); const originalCodeStartAnnotations = mutantsStarting.map(m => ``); - const originalCodeEndAnnotations = mutantsEnding.map(m => ''); + const originalCodeEndAnnotations = mutantsEnding.map(() => ''); return `${backgroundColorEndAnnotation}${originalCodeEndAnnotations.join('')}${mutantsAnnotations.join('')}${originalCodeStartAnnotations.join('')}${backgroundColorAnnotation}${escapeHtml(char)}`; } catch (err) { diff --git a/packages/stryker-javascript-mutator/src/mutators/ConditionalExpressionMutator.ts b/packages/stryker-javascript-mutator/src/mutators/ConditionalExpressionMutator.ts index 8a67695eab..50cfcd2fa5 100644 --- a/packages/stryker-javascript-mutator/src/mutators/ConditionalExpressionMutator.ts +++ b/packages/stryker-javascript-mutator/src/mutators/ConditionalExpressionMutator.ts @@ -10,7 +10,7 @@ export default class ConditionalExpressionMutator implements NodeMutator { constructor() { } - public mutate(node: types.Node, copy: (obj: T, deep?: boolean) => T): types.Node[] | void { + public mutate(node: types.Node): types.Node[] | void { if (types.isConditionalExpression(node)) { return [ NodeGenerator.createBooleanLiteralNode(node.test, false), diff --git a/packages/stryker-javascript-mutator/src/mutators/DoStatementMutator.ts b/packages/stryker-javascript-mutator/src/mutators/DoStatementMutator.ts index 36aad27818..6008edb1c6 100644 --- a/packages/stryker-javascript-mutator/src/mutators/DoStatementMutator.ts +++ b/packages/stryker-javascript-mutator/src/mutators/DoStatementMutator.ts @@ -10,7 +10,7 @@ export default class DoStatementMutator implements NodeMutator { constructor() { } - public mutate(node: types.Node, copy: (obj: T, deep?: boolean) => T): types.Node[] | void { + public mutate(node: types.Node): types.Node[] | void { if (types.isDoWhileStatement(node)) { return [NodeGenerator.createBooleanLiteralNode(node.test, false)]; } diff --git a/packages/stryker-javascript-mutator/src/mutators/IfStatementMutator.ts b/packages/stryker-javascript-mutator/src/mutators/IfStatementMutator.ts index 93ac69e8d2..5d65362c35 100644 --- a/packages/stryker-javascript-mutator/src/mutators/IfStatementMutator.ts +++ b/packages/stryker-javascript-mutator/src/mutators/IfStatementMutator.ts @@ -10,7 +10,7 @@ export default class IfStatementMutator implements NodeMutator { constructor() { } - public mutate(node: types.Node, copy: (obj: T, deep?: boolean) => T): types.Node[] | void { + public mutate(node: types.Node): types.Node[] | void { if (types.isIfStatement(node)) { return [ NodeGenerator.createBooleanLiteralNode(node.test, false), diff --git a/packages/stryker-javascript-mutator/src/mutators/WhileStatementMutator.ts b/packages/stryker-javascript-mutator/src/mutators/WhileStatementMutator.ts index 6cc0a0b158..106b3d27ad 100644 --- a/packages/stryker-javascript-mutator/src/mutators/WhileStatementMutator.ts +++ b/packages/stryker-javascript-mutator/src/mutators/WhileStatementMutator.ts @@ -10,7 +10,7 @@ export default class WhileStatementMutator implements NodeMutator { constructor() { } - public mutate(node: types.Node, copy: (obj: T, deep?: boolean) => T): types.Node[] | void { + public mutate(node: types.Node): types.Node[] | void { if (types.isWhileStatement(node)) { return [NodeGenerator.createBooleanLiteralNode(node.test, false)]; } diff --git a/packages/stryker-jest-runner/test/unit/jestTestAdapters/JestPromiseTestAdapterSpec.ts b/packages/stryker-jest-runner/test/unit/jestTestAdapters/JestPromiseTestAdapterSpec.ts index 57b6e4925f..f2b0c99af2 100644 --- a/packages/stryker-jest-runner/test/unit/jestTestAdapters/JestPromiseTestAdapterSpec.ts +++ b/packages/stryker-jest-runner/test/unit/jestTestAdapters/JestPromiseTestAdapterSpec.ts @@ -13,7 +13,7 @@ describe('JestPromiseTestAdapter', () => { beforeEach(() => { runCLIStub = sinon.stub(jest, 'runCLI'); - runCLIStub.callsFake((config: object, projectRootArray: string[]) => Promise.resolve({ + runCLIStub.callsFake((config: object) => Promise.resolve({ config, result: 'testResult' })); diff --git a/packages/stryker-jest-runner/test/unit/utils/createReactJestConfigSpec.ts b/packages/stryker-jest-runner/test/unit/utils/createReactJestConfigSpec.ts index 04cbb6b402..37b8ad9cbd 100644 --- a/packages/stryker-jest-runner/test/unit/utils/createReactJestConfigSpec.ts +++ b/packages/stryker-jest-runner/test/unit/utils/createReactJestConfigSpec.ts @@ -34,9 +34,7 @@ describe('createReactTsJestConfig', () => { beforeEach(() => { loaderStub = sinon.stub(loader, 'require'); - loaderStub.returns((resolve: Function, projectRoot: string, ejected: boolean) => { - return 'jestConfig'; - }); + loaderStub.returns(() => 'jestConfig'); }); it('should call the loader with the react jest config generator', () => { diff --git a/packages/stryker-karma-runner/src/StrykerReporter.ts b/packages/stryker-karma-runner/src/StrykerReporter.ts index 553b7c2fc5..c7a1b0dda2 100644 --- a/packages/stryker-karma-runner/src/StrykerReporter.ts +++ b/packages/stryker-karma-runner/src/StrykerReporter.ts @@ -32,7 +32,7 @@ export default class StrykerReporter extends EventEmitter implements karma.Repor return this._instance; } - public onSpecComplete(browser: any, spec: KarmaSpec) { + public onSpecComplete(_browser: any, spec: KarmaSpec) { const name = spec.suite.reduce((name, suite) => name + suite + ' ', '') + spec.description; let status = TestStatus.Failed; if (spec.skipped) { @@ -53,7 +53,7 @@ export default class StrykerReporter extends EventEmitter implements karma.Repor this.emit('run_complete', this.collectRunState(runResult)); } - public onBrowserComplete(browser: any, result: { coverage: CoverageCollection | CoverageCollectionPerTest }) { + public onBrowserComplete(_browser: any, result: { coverage: CoverageCollection | CoverageCollectionPerTest }) { this.emit('coverage_report', result.coverage); } @@ -61,7 +61,7 @@ export default class StrykerReporter extends EventEmitter implements karma.Repor this.emit('browsers_ready'); } - public onBrowserError(browser: any, error: any) { + public onBrowserError(_browser: any, error: any) { // Karma 2.0 has different error messages if (error.message) { this.emit('browser_error', error.message); diff --git a/packages/stryker-karma-runner/test/unit/starters/stryker-karma.confSpec.ts b/packages/stryker-karma-runner/test/unit/starters/stryker-karma.confSpec.ts index ce4d757d1b..b616b13a11 100644 --- a/packages/stryker-karma-runner/test/unit/starters/stryker-karma.confSpec.ts +++ b/packages/stryker-karma-runner/test/unit/starters/stryker-karma.confSpec.ts @@ -117,7 +117,7 @@ describe('stryker-karma.conf.js', () => { it('should set basePath to location of karma.conf.js', () => { sut.setGlobals({ karmaConfigFile: '../foobar.conf.js' }); - requireModuleStub.returns((config: Config) => { /* noop */ }); + requireModuleStub.returns(() => { /* noop */ }); sut(config); expect(config).deep.include({ basePath: path.resolve('../'), diff --git a/packages/stryker-mocha-runner/src/MochaTestRunner.ts b/packages/stryker-mocha-runner/src/MochaTestRunner.ts index 3427ce96ef..4192ea1475 100644 --- a/packages/stryker-mocha-runner/src/MochaTestRunner.ts +++ b/packages/stryker-mocha-runner/src/MochaTestRunner.ts @@ -50,7 +50,7 @@ export default class MochaTestRunner implements TestRunner { this.addTestHooks(mocha, testHooks); this.addFiles(mocha); try { - mocha.run((failures: number) => { + mocha.run(() => { const reporter = StrykerMochaReporter.CurrentInstance; if (reporter) { const result: RunResult = reporter.runResult; diff --git a/packages/stryker-typescript/src/mutator/ArrowFunctionMutator.ts b/packages/stryker-typescript/src/mutator/ArrowFunctionMutator.ts index fb48345b6d..c82672ff34 100644 --- a/packages/stryker-typescript/src/mutator/ArrowFunctionMutator.ts +++ b/packages/stryker-typescript/src/mutator/ArrowFunctionMutator.ts @@ -8,7 +8,7 @@ export default class ArrowFunctionMutator extends NodeMutator return node.kind === ts.SyntaxKind.ArrowFunction; } - protected identifyReplacements(fn: ts.ArrowFunction, sourceFile: ts.SourceFile): NodeReplacement[] { + protected identifyReplacements(fn: ts.ArrowFunction): NodeReplacement[] { if (fn.body.kind === ts.SyntaxKind.Block) { // This case is already handled by the BlockMutator. return []; diff --git a/packages/stryker-typescript/src/mutator/BlockMutator.ts b/packages/stryker-typescript/src/mutator/BlockMutator.ts index bb4c9a8091..0ada4f1f7e 100644 --- a/packages/stryker-typescript/src/mutator/BlockMutator.ts +++ b/packages/stryker-typescript/src/mutator/BlockMutator.ts @@ -8,7 +8,7 @@ export default class BlockMutator extends NodeMutator { return node.kind === ts.SyntaxKind.Block; } - protected identifyReplacements(block: ts.Block, sourceFile: ts.SourceFile): NodeReplacement[] { + protected identifyReplacements(block: ts.Block): NodeReplacement[] { if (block.statements.length) { return [{ node: block, replacement: '{}' }]; } else { diff --git a/packages/stryker-typescript/src/mutator/ConditionalExpressionMutator.ts b/packages/stryker-typescript/src/mutator/ConditionalExpressionMutator.ts index e65a0da37d..0c1bd2c37d 100644 --- a/packages/stryker-typescript/src/mutator/ConditionalExpressionMutator.ts +++ b/packages/stryker-typescript/src/mutator/ConditionalExpressionMutator.ts @@ -8,7 +8,7 @@ export default class ConditionalExpressionMutator extends NodeMutator { return node.kind === ts.SyntaxKind.DoStatement; } - protected identifyReplacements(node: ts.DoStatement, sourceFile: ts.SourceFile): NodeReplacement[] { + protected identifyReplacements(node: ts.DoStatement): NodeReplacement[] { return [{ node: node.expression, replacement: 'false' }]; } diff --git a/packages/stryker-typescript/src/mutator/IfStatementMutator.ts b/packages/stryker-typescript/src/mutator/IfStatementMutator.ts index 6168a501cd..fb7cad649c 100644 --- a/packages/stryker-typescript/src/mutator/IfStatementMutator.ts +++ b/packages/stryker-typescript/src/mutator/IfStatementMutator.ts @@ -8,7 +8,7 @@ export default class IfStatementMutator extends NodeMutator { return node.kind === ts.SyntaxKind.IfStatement; } - protected identifyReplacements(ifStatement: ts.IfStatement, sourceFile: ts.SourceFile): NodeReplacement[] { + protected identifyReplacements(ifStatement: ts.IfStatement): NodeReplacement[] { return [ { node: ifStatement.expression, replacement: 'true' }, { node: ifStatement.expression, replacement: 'false' } diff --git a/packages/stryker-typescript/src/mutator/ObjectLiteralMutator.ts b/packages/stryker-typescript/src/mutator/ObjectLiteralMutator.ts index 9aea46eed0..7ab9b4bd3c 100644 --- a/packages/stryker-typescript/src/mutator/ObjectLiteralMutator.ts +++ b/packages/stryker-typescript/src/mutator/ObjectLiteralMutator.ts @@ -8,7 +8,7 @@ export default class ObjectLiteralMutator extends NodeMutator 0) { return [{ node: o, replacement: '{}' }]; } else { diff --git a/packages/stryker-typescript/src/mutator/WhileStatementMutator.ts b/packages/stryker-typescript/src/mutator/WhileStatementMutator.ts index ccd80a7c90..a2dfc6efd5 100644 --- a/packages/stryker-typescript/src/mutator/WhileStatementMutator.ts +++ b/packages/stryker-typescript/src/mutator/WhileStatementMutator.ts @@ -8,7 +8,7 @@ export default class WhileStatementMutator extends NodeMutator { it('should log errors on failure during load of extending file', () => { readFileSyncStub.returns(`{ "extends": "./parent.tsconfig.json" }`); config[CONFIG_KEY] = 'tsconfig.json'; - sut.edit(config, parseConfigHost({ readFile: _ => `invalid json` })); + sut.edit(config, parseConfigHost({ readFile: () => `invalid json` })); expect(loggerStub.error).calledWithMatch(match('error TS1005: \'{\' expected.')); }); function parseConfigHost(overrides?: Partial): ts.ParseConfigHost { const defaults: ts.ParseConfigHost = { - fileExists: _ => true, - readDirectory: dir => ['file1.ts', 'file2.ts'], - readFile: _ => '', + fileExists: () => true, + readDirectory: () => ['file1.ts', 'file2.ts'], + readFile: () => '', useCaseSensitiveFileNames: true }; return Object.assign({}, defaults, overrides); diff --git a/packages/stryker-webpack-transpiler/src/compiler/WebpackCompiler.ts b/packages/stryker-webpack-transpiler/src/compiler/WebpackCompiler.ts index aaa957e626..e9f075bc8a 100644 --- a/packages/stryker-webpack-transpiler/src/compiler/WebpackCompiler.ts +++ b/packages/stryker-webpack-transpiler/src/compiler/WebpackCompiler.ts @@ -33,7 +33,7 @@ export default class WebpackCompiler { } public emit(): Promise { - return this.compile().then(stats => { + return this.compile().then(() => { const outputFiles = this._outputFS.collectFiles(); this._outputFS.purge(); return outputFiles; diff --git a/packages/stryker-webpack-transpiler/src/fs/OutputFileSystem.ts b/packages/stryker-webpack-transpiler/src/fs/OutputFileSystem.ts index 14dd77f616..3b4a08fea0 100644 --- a/packages/stryker-webpack-transpiler/src/fs/OutputFileSystem.ts +++ b/packages/stryker-webpack-transpiler/src/fs/OutputFileSystem.ts @@ -22,16 +22,16 @@ export default class OutputFileSystem implements webpack.OutputFileSystem { new File(fileName, this._files[fileName])); } - public mkdirp(dir: string, opts: any, cb?: Callback): void { + public mkdirp(_dir: string, opts: any, cb?: Callback): void { const callback: Callback = cb || opts; callback(null); } - public rmdir(name: PathLike, callback: EmptyCallback): void { + public rmdir(_name: PathLike, callback: EmptyCallback): void { callback(); } - public mkdir(name: PathLike, callback: EmptyCallback): void { + public mkdir(_name: PathLike, callback: EmptyCallback): void { callback(); } diff --git a/packages/stryker-webpack-transpiler/test/helpers/producers.ts b/packages/stryker-webpack-transpiler/test/helpers/producers.ts index 7f67a9ba4a..6115c6906f 100644 --- a/packages/stryker-webpack-transpiler/test/helpers/producers.ts +++ b/packages/stryker-webpack-transpiler/test/helpers/producers.ts @@ -1,4 +1,4 @@ -import { Configuration, Stats } from 'webpack'; +import { Configuration } from 'webpack'; import { WebpackCompilerMock } from './mockInterfaces'; import * as sinon from 'sinon'; import { StrykerWebpackConfig } from '../../src/WebpackTranspiler'; @@ -44,6 +44,6 @@ export function createWebpackMock(): WebpackCompilerMock { context: { fileSystem: {} }, normal: { fileSystem: {} } }, - run: (callback: (err: Error, stats: Stats) => void) => { } + run: () => { } }; } diff --git a/packages/stryker-webpack-transpiler/test/unit/compiler/ConfigLoaderSpec.ts b/packages/stryker-webpack-transpiler/test/unit/compiler/ConfigLoaderSpec.ts index 3e3ea51cfe..5ae1b80530 100644 --- a/packages/stryker-webpack-transpiler/test/unit/compiler/ConfigLoaderSpec.ts +++ b/packages/stryker-webpack-transpiler/test/unit/compiler/ConfigLoaderSpec.ts @@ -2,12 +2,12 @@ import * as fs from 'fs'; import * as path from 'path'; import { expect, assert } from 'chai'; import ConfigLoader from '../../../src/compiler/ConfigLoader'; -import { Configuration, Compiler, Plugin } from 'webpack'; +import { Configuration, Plugin } from 'webpack'; import { createStrykerWebpackConfig } from '../../helpers/producers'; -class FooPlugin implements Plugin { public foo = true; public apply(compiler: Compiler): void { } } -class ProgressPlugin implements Plugin { public apply(compiler: Compiler): void { } } -class BarPlugin implements Plugin { public bar = true; public apply(compiler: Compiler): void { } } +class FooPlugin implements Plugin { public foo = true; public apply() { } } +class ProgressPlugin implements Plugin { public apply() { } } +class BarPlugin implements Plugin { public bar = true; public apply() { } } describe('ConfigLoader', () => { let sut: ConfigLoader; diff --git a/packages/stryker-webpack-transpiler/test/unit/compiler/WebpackCompilerSpec.ts b/packages/stryker-webpack-transpiler/test/unit/compiler/WebpackCompilerSpec.ts index 7d1a19c9af..cb6ddb6551 100644 --- a/packages/stryker-webpack-transpiler/test/unit/compiler/WebpackCompilerSpec.ts +++ b/packages/stryker-webpack-transpiler/test/unit/compiler/WebpackCompilerSpec.ts @@ -33,7 +33,7 @@ describe('WebpackCompiler', () => { const textFiles = createFakeTextFileArray(); sut.writeFilesToFs(textFiles); - textFiles.forEach((textFile, index) => { + textFiles.forEach(textFile => { expect(inputFileSystemMock.writeFileSync).calledWith(textFile.name); }); }); diff --git a/packages/stryker-webpack-transpiler/test/unit/fs/InputFileSystemSpec.ts b/packages/stryker-webpack-transpiler/test/unit/fs/InputFileSystemSpec.ts index b87be23dc2..353db3bd63 100644 --- a/packages/stryker-webpack-transpiler/test/unit/fs/InputFileSystemSpec.ts +++ b/packages/stryker-webpack-transpiler/test/unit/fs/InputFileSystemSpec.ts @@ -35,7 +35,7 @@ describe('InputFileSystem', () => { it('should forward to memory fs', done => { memoryFSMock.stat.callsArgWith(1, undefined, 'foobar'); - sut.stat('arg1', (error, value) => { + sut.stat('arg1', (_error, value) => { expect(value).eq('foobar'); expect(innerFSMock.stat).not.called; done(); @@ -59,7 +59,7 @@ describe('InputFileSystem', () => { memoryFSMock.stat.callsArgOnWith(1, sut, new Error('foobar')); // Act - sut.stat('foo/bar/not/exits', (err, stats) => { + sut.stat('foo/bar/not/exits', err => { // Assert expect(err).eq(expectedError); @@ -72,7 +72,7 @@ describe('InputFileSystem', () => { it('should forward readFile to memory FS', done => { memoryFSMock.readFile.callsArgOnWith(2, sut, undefined, 'foobar'); - sut.readFile('path', {}, (error: Error, value: string) => { + sut.readFile('path', {}, (_error: Error, value: string) => { expect(value).eq('foobar'); expect(memoryFSMock.readFile).calledWith('path'); expect(innerFSMock.readFile).not.called; @@ -83,7 +83,7 @@ describe('InputFileSystem', () => { it('should forward to real FS if memory-fs gave an error', done => { memoryFSMock.readFile.callsArgOnWith(1, sut, new Error('foobar')); innerFSMock.readFile.callsArgWith(1, undefined, 'the content'); - sut.readFile('foobar', (error: Error, content: string) => { + sut.readFile('foobar', (_error: Error, content: string) => { expect(content).eq('the content'); expect(innerFSMock.readFile).calledWith('foobar'); done(); @@ -97,7 +97,7 @@ describe('InputFileSystem', () => { memoryFSMock.readFile.callsArgOnWith(1, sut, new Error('foobar')); // Act - sut.readFile('foo/bar/not/exits', (error: Error, content: string) => { + sut.readFile('foo/bar/not/exits', (error: Error) => { // Assert expect(error).eq(expectedError); diff --git a/packages/stryker/src/MutantTestMatcher.ts b/packages/stryker/src/MutantTestMatcher.ts index 7483cf8c59..cc0f693620 100644 --- a/packages/stryker/src/MutantTestMatcher.ts +++ b/packages/stryker/src/MutantTestMatcher.ts @@ -205,7 +205,7 @@ export default class MutantTestMatcher { } } - private isCoveragePerTestResult(coverage: CoverageCollection | CoveragePerTestResult | undefined): coverage is CoveragePerTestResult { + private isCoveragePerTestResult(_coverage: CoverageCollection | CoveragePerTestResult | undefined): _coverage is CoveragePerTestResult { return this.options.coverageAnalysis === 'perTest'; } } diff --git a/packages/stryker/src/reporters/ClearTextScoreTable.ts b/packages/stryker/src/reporters/ClearTextScoreTable.ts index 48afb216ad..db61b87399 100644 --- a/packages/stryker/src/reporters/ClearTextScoreTable.ts +++ b/packages/stryker/src/reporters/ClearTextScoreTable.ts @@ -50,7 +50,7 @@ class Column { return this.pad(this.header); } - protected color(score: ScoreResult) { + protected color(_score: ScoreResult) { return (input: string) => input; } } diff --git a/packages/stryker/src/reporters/DashboardReporter.ts b/packages/stryker/src/reporters/DashboardReporter.ts index c57f191f0e..29d739c846 100644 --- a/packages/stryker/src/reporters/DashboardReporter.ts +++ b/packages/stryker/src/reporters/DashboardReporter.ts @@ -10,7 +10,7 @@ export default class DashboardReporter implements Reporter { private readonly ciProvider = determineCIProvider(); constructor( - setting: StrykerOptions, + _setting: StrykerOptions, private readonly dashboardReporterClient: DashboardReporterClient = new DashboardReporterClient() ) { } diff --git a/packages/stryker/test/integration/child-proxy/Echo.ts b/packages/stryker/test/integration/child-proxy/Echo.ts index 4cc9ffae84..51b651187b 100644 --- a/packages/stryker/test/integration/child-proxy/Echo.ts +++ b/packages/stryker/test/integration/child-proxy/Echo.ts @@ -25,7 +25,7 @@ export default class Echo { public exit(code: number) { process.exit(code); - return new Promise(res => {/*never resolve*/ }); + return new Promise(() => {/*never resolve*/ }); } public readFile() { diff --git a/packages/stryker/test/unit/mutators/ES5MutantGeneratorSpec.ts b/packages/stryker/test/unit/mutators/ES5MutantGeneratorSpec.ts index 71e2f86293..c77989b8dc 100644 --- a/packages/stryker/test/unit/mutators/ES5MutantGeneratorSpec.ts +++ b/packages/stryker/test/unit/mutators/ES5MutantGeneratorSpec.ts @@ -45,7 +45,7 @@ describe('ES5Mutator', () => { class StubMutator implements NodeMutator { public name: 'stub'; - public applyMutations(node: IdentifiedNode, copy: (obj: any, deep?: boolean) => any): IdentifiedNode[] { + public applyMutations(node: IdentifiedNode): IdentifiedNode[] { const nodes: IdentifiedNode[] = []; if (node.type === Syntax.BinaryExpression) { // eg: '1 * 2': push child node diff --git a/packages/stryker/test/unit/test-runner/TimeoutDecoratorSpec.ts b/packages/stryker/test/unit/test-runner/TimeoutDecoratorSpec.ts index b72bc714b6..0100a3b844 100644 --- a/packages/stryker/test/unit/test-runner/TimeoutDecoratorSpec.ts +++ b/packages/stryker/test/unit/test-runner/TimeoutDecoratorSpec.ts @@ -73,7 +73,7 @@ describe('TimeoutDecorator', () => { }); it('should handle timeouts', () => { - testRunner1.run.returns(new Promise(res => { })); + testRunner1.run.returns(new Promise(() => { })); const runPromise = sut.run({ timeout: 20 }); clock.tick(20); return expect(runPromise.then(result => { diff --git a/tsconfig.json b/tsconfig.json index b789274dcc..1405cec628 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "alwaysStrict": true, "noImplicitReturns": true, "strictNullChecks": true, + "noUnusedParameters": true, "lib": [ "es5", "es2015.promise", @@ -23,4 +24,4 @@ "es2015.proxy" ] } -} \ No newline at end of file +}