Skip to content
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
2 changes: 1 addition & 1 deletion src/discoverer/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class EvaluationTestDiscoverer implements ITestDiscoverer {
directive?: string,
) {
const fn = (name: string, callback: () => void) => {
if (typeof name !== 'string' || typeof callback !== 'function') {
if (typeof name !== 'string') {
return placeholder();
}

Expand Down
2 changes: 1 addition & 1 deletion src/discoverer/syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class SyntaxTestDiscoverer implements ITestDiscoverer {

traverse(ast, {
enter(node) {
if (node.type !== C.CallExpression || node.arguments.length < 2) {
if (node.type !== C.CallExpression) {
return;
}

Expand Down
2 changes: 2 additions & 0 deletions test-workspaces/config-file-change/hello.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ describe('math', () => {
it('subtraction', async () => {
strictEqual(1 - 1, 0);
});

it('pending');
});
2 changes: 2 additions & 0 deletions test-workspaces/no-config/hello.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ describe('math', () => {
it('subtraction', async () => {
strictEqual(1 - 1, 0);
});

it('pending');
});
2 changes: 2 additions & 0 deletions test-workspaces/simple/skip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ describe('skip-suite-2', () => {
strictEqual(1 + 1, 2);
});

it('pending test');

it('subtraction', async () => {
strictEqual(1 - 1, 0);
});
Expand Down
1 change: 1 addition & 0 deletions test-workspaces/source-mapped/hello.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test-workspaces/source-mapped/hello.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions test-workspaces/source-mapped/hello.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ describe('math', () => {
it('subtraction', async () => {
strictEqual(1 - 1, 0);
});

it('pending test');
});
2 changes: 2 additions & 0 deletions test-workspaces/tsnode-checkjs/test/hello.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ describe('math', () => {
it('addition', async () => {
strictEqual((1 + 1) as number, 2 as any as number);
});

it('pending test');
});
2 changes: 2 additions & 0 deletions test-workspaces/typescript-full/hello.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ describe('math', () => {
strictEqual((1 - 1) as number, 0 as any as number);
});

it('pending');

createTests(['dynamic1', 'dynamic2'])
});
2 changes: 2 additions & 0 deletions test-workspaces/typescript-full/shared.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ export function createTests(names: string[]) {
it(name, ()=> {
strictEqual((1 + 1) as number, 2 as any as number);
})

it(`${name} pending`);
}
}
2 changes: 2 additions & 0 deletions test-workspaces/typescript-top-level-await/hello.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ describe('math', () => {
it('subtraction', async () => {
strictEqual((1 - 1) as number, 0 as any as number);
});

it('pending');
});
2 changes: 2 additions & 0 deletions test-workspaces/typescript/hello.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ describe('math', () => {
it('failing', async () => {
strictEqual((1 * 1) as number, 0 as any as number);
});

it('pending');
});