Skip to content

Commit 419047b

Browse files
authored
Update dependencies
* Update dev dependencies * Update dependencies * Remove concurrency limit for internal tests * Test with TypeScript 4.6 * Update XO and fix formatting
1 parent 9f797b0 commit 419047b

File tree

12 files changed

+563
-472
lines changed

12 files changed

+563
-472
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
strategy:
4545
matrix:
46-
ts-version: [~4.4, ~4.5]
46+
ts-version: [~4.4, ~4.5, ~4.6]
4747
steps:
4848
- uses: actions/checkout@v2
4949
- run: rm .npmrc

.taprc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ files:
55
- "test-tap/reporters/*.js"
66
- "test-tap/integration/*.js"
77
flow: false
8-
jobs: 2
98
jsx: false
109
timeout: 300
1110
ts: false

entrypoints/eslint-plugin-helper.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function load(projectDir, overrides) {
9090

9191
const helper = Object.freeze({
9292
classifyFile: classifyForESLint,
93-
classifyImport: importPath => {
93+
classifyImport(importPath) {
9494
if (hasExtension(globs.extensions, importPath)) {
9595
// The importPath has one of the test file extensions: we can classify
9696
// it directly.

lib/reporters/tap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'node:path';
44
import indentString from 'indent-string';
55
import plur from 'plur';
66
import stripAnsi from 'strip-ansi';
7-
import supertap from 'supertap';
7+
import * as supertap from 'supertap';
88

99
import beautifyStack from './beautify-stack.js';
1010
import prefixTitle from './prefix-title.js';

lib/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ const testMap = new WeakMap();
2424
class ExecutionContext extends Assertions {
2525
constructor(test) {
2626
super({
27-
pass: () => {
27+
pass() {
2828
test.countPassedAssertion();
2929
},
30-
pending: promise => {
30+
pending(promise) {
3131
test.addPendingAssertion(promise);
3232
},
33-
fail: error => {
33+
fail(error) {
3434
test.addFailedAssertion(error);
3535
},
36-
skip: () => {
36+
skip() {
3737
test.countPassedAssertion();
3838
},
3939
compareWithSnapshot: options => test.compareWithSnapshot(options),
@@ -109,7 +109,7 @@ class ExecutionContext extends Assertions {
109109
logs: [...logs], // Don't allow modification of logs.
110110
passed,
111111
title: attemptTitle,
112-
commit: ({retainLogs = true} = {}) => {
112+
commit({retainLogs = true} = {}) {
113113
if (committed) {
114114
return;
115115
}
@@ -132,7 +132,7 @@ class ExecutionContext extends Assertions {
132132
startingSnapshotCount,
133133
});
134134
},
135-
discard: ({retainLogs = false} = {}) => {
135+
discard({retainLogs = false} = {}) {
136136
if (committed) {
137137
test.saveFirstError(new Error('Can’t discard a result that was previously committed'));
138138
return;

0 commit comments

Comments
 (0)