Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
* Update dev dependencies

* Update dependencies

* Remove concurrency limit for internal tests

* Test with TypeScript 4.6

* Update XO and fix formatting
  • Loading branch information
novemberborn committed Mar 6, 2022
1 parent 9f797b0 commit 419047b
Show file tree
Hide file tree
Showing 12 changed files with 563 additions and 472 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ts-version: [~4.4, ~4.5]
ts-version: [~4.4, ~4.5, ~4.6]
steps:
- uses: actions/checkout@v2
- run: rm .npmrc
Expand Down
1 change: 0 additions & 1 deletion .taprc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ files:
- "test-tap/reporters/*.js"
- "test-tap/integration/*.js"
flow: false
jobs: 2
jsx: false
timeout: 300
ts: false
2 changes: 1 addition & 1 deletion entrypoints/eslint-plugin-helper.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function load(projectDir, overrides) {

const helper = Object.freeze({
classifyFile: classifyForESLint,
classifyImport: importPath => {
classifyImport(importPath) {
if (hasExtension(globs.extensions, importPath)) {
// The importPath has one of the test file extensions: we can classify
// it directly.
Expand Down
2 changes: 1 addition & 1 deletion lib/reporters/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'node:path';
import indentString from 'indent-string';
import plur from 'plur';
import stripAnsi from 'strip-ansi';
import supertap from 'supertap';
import * as supertap from 'supertap';

import beautifyStack from './beautify-stack.js';
import prefixTitle from './prefix-title.js';
Expand Down
12 changes: 6 additions & 6 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ const testMap = new WeakMap();
class ExecutionContext extends Assertions {
constructor(test) {
super({
pass: () => {
pass() {
test.countPassedAssertion();
},
pending: promise => {
pending(promise) {
test.addPendingAssertion(promise);
},
fail: error => {
fail(error) {
test.addFailedAssertion(error);
},
skip: () => {
skip() {
test.countPassedAssertion();
},
compareWithSnapshot: options => test.compareWithSnapshot(options),
Expand Down Expand Up @@ -109,7 +109,7 @@ class ExecutionContext extends Assertions {
logs: [...logs], // Don't allow modification of logs.
passed,
title: attemptTitle,
commit: ({retainLogs = true} = {}) => {
commit({retainLogs = true} = {}) {
if (committed) {
return;
}
Expand All @@ -132,7 +132,7 @@ class ExecutionContext extends Assertions {
startingSnapshotCount,
});
},
discard: ({retainLogs = false} = {}) => {
discard({retainLogs = false} = {}) {
if (committed) {
test.saveFirstError(new Error('Can鈥檛 discard a result that was previously committed'));
return;
Expand Down

0 comments on commit 419047b

Please sign in to comment.