Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package maintenance #273

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
strategy:
matrix:
node:
- 12
- 14
- 16
- 18
- 19
- 20
os:
- ubuntu-latest
- windows-latest
Expand Down
1 change: 1 addition & 0 deletions lib/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const { iter, capitalize } = require('@metarhia/common');
const yaml = require('yaml');
// eslint-disable-next-line import/no-unresolved
const yamlCustomTags = require('tap-yaml/lib/types/index.js');

// TODO: replace tap-yaml and tap-mocha-reporter - due to the fact that
Expand Down Expand Up @@ -56,18 +57,18 @@

// Record test
// test <Test>
record() {

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 60 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'record'
throw new Error('Not implemented');
}

// Fail test with error
// test <Test>
// error <Error>
error() {

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 67 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'error'
throw new Error('Not implemented');
}

finish() {

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 71 in lib/report.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'finish'
throw new Error('Not implemented');
}

Expand Down
5,076 changes: 3,486 additions & 1,590 deletions package-lock.json

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,33 @@
"fix": "eslint --fix . && prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/.*rc\" \"**/*.yml\" \"**/*.yaml\" \"**/*.ts\""
},
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},
"dependencies": {
"@metarhia/common": "^2.2.0",
"@metarhia/common": "^2.2.2",
"tap-mocha-reporter": "^5.0.3",
"tap-yaml": "^1.0.0",
"tap-yaml": "^1.0.2",
"yaml": "^1.10.2",
"yargs": "^15.4.1"
"yargs": "^16.2.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^16.2.4",
"@metarhia/doc": "^0.7.0",
"@stryker-mutator/core": "^5.6.1",
"@types/node": "^14.18.12",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"eslint": "^8.11.0",
"eslint-config-metarhia": "^7.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"prettier": "^2.6.0",
"remark-cli": "^10.0.1",
"@stryker-mutator/core": "^6.4.2",
"@types/node": "^14.18.53",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"eslint": "^8.45.0",
"eslint-config-metarhia": "^8.2.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-lint-metarhia": "^2.0.1",
"remark-validate-links": "^11.0.2",
"typescript": "^4.6.2"
"remark-validate-links": "^12.1.1",
"typescript": "^5.1.6"
}
}
3 changes: 0 additions & 3 deletions test/fixtures/mock-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
} = require('../..');

module.exports = class MockReporter extends Reporter {
record() {}

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'record'

Check warning on line 8 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'record'

error() {}

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'error'

Check warning on line 9 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'error'

finish() {}

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'finish'

Check warning on line 10 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'finish'

log() {}

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, ubuntu-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, ubuntu-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, ubuntu-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, ubuntu-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, macos-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, windows-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (14, windows-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, macos-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (18, windows-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (19, macos-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, windows-latest)

Expected 'this' to be used by class method 'log'

Check warning on line 11 in test/fixtures/mock-reporter.js

View workflow job for this annotation

GitHub Actions / build (16, macos-latest)

Expected 'this' to be used by class method 'log'
};
2 changes: 1 addition & 1 deletion test/no-reporter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (process.argv[2] === 'child-success') {
test.end();
metatests.runner.instance.on('finish', hasFailures => {
// this test must succeed if test has 'error' - the above end-after-end
process.exit(!hasFailures);
process.exit(hasFailures ? 0 : 1);
});
} else {
test.plan(2);
Expand Down
4 changes: 4 additions & 0 deletions test/unit/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ assert(
equal(
(a, b) => {
a += 3;
// eslint-disable-next-line no-invalid-this
return this.c + a + b;
},
(a, b) => {
a += 3;
// eslint-disable-next-line no-invalid-this
return this.c + a + b;
}
)
Expand Down Expand Up @@ -308,10 +310,12 @@ assert(
strictEqual(
(a, b) => {
a += 3;
// eslint-disable-next-line no-invalid-this
return this.c + a + b;
},
(a, b) => {
a += 3;
// eslint-disable-next-line no-invalid-this
return this.c + a + b;
}
)
Expand Down
1 change: 1 addition & 0 deletions test/unit/declarative.run-with-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const assert = require('assert');
const { DeclarativeTest } = require('../..');

class CustomClass {
// eslint-disable-next-line class-methods-use-this
bufferify(string) {
return Buffer.from(string);
}
Expand Down
13 changes: 9 additions & 4 deletions test/unit/imperative.dependent-and-parallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ assert.throws(
)
);

assert.doesNotThrow(() => {
const test = new ImperativeTest('', null, { parallelSubtests: true });
test.end();
}, checkError(new Error('parallelSubtests and dependentSubtests are contradictory')));
assert.doesNotThrow(
() => {
const test = new ImperativeTest('', null, { parallelSubtests: true });
test.end();
},
checkError(
new Error('parallelSubtests and dependentSubtests are contradictory')
)
);
4 changes: 2 additions & 2 deletions types/lib/imperative-test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ImperativeTestResult {

export interface ImperativeTestOptions<
C extends TestContext = {},
R extends Runner = Runner
R extends Runner = Runner,
> extends TestOptions<C, R> {
run: boolean;
async: boolean;
Expand Down Expand Up @@ -240,7 +240,7 @@ export function test<C extends TestContext = {}, R extends Runner = Runner>(
// Create an asynchronous test
export function testAsync<
C extends TestContext = {},
R extends Runner = Runner
R extends Runner = Runner,
>(
caption: string,
func: (test: ImperativeTest) => any | Promise<any>,
Expand Down
2 changes: 1 addition & 1 deletion types/lib/runner.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface RunnerOptions {
}

export class Runner<
O extends RunnerOptions = RunnerOptions
O extends RunnerOptions = RunnerOptions,
> extends events.EventEmitter {
public options: O;
public reporter: Reporter<ReporterOptions>;
Expand Down
2 changes: 1 addition & 1 deletion types/lib/test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface TestMetadata {
export class Test<
R extends TestResult = TestResult,
O extends TestOptions = TestOptions,
M extends TestMetadata = TestMetadata
M extends TestMetadata = TestMetadata,
> extends events.EventEmitter {
public caption: string;
public results: R[];
Expand Down
Loading