diff --git a/src/discoverer/evaluate.ts b/src/discoverer/evaluate.ts index d0c36c5..a9e7b57 100644 --- a/src/discoverer/evaluate.ts +++ b/src/discoverer/evaluate.ts @@ -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(); } diff --git a/src/discoverer/syntax.ts b/src/discoverer/syntax.ts index e545fb9..a686e7b 100644 --- a/src/discoverer/syntax.ts +++ b/src/discoverer/syntax.ts @@ -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; } diff --git a/test-workspaces/config-file-change/hello.test.js b/test-workspaces/config-file-change/hello.test.js index 7cc4f83..6ef6846 100644 --- a/test-workspaces/config-file-change/hello.test.js +++ b/test-workspaces/config-file-change/hello.test.js @@ -8,4 +8,6 @@ describe('math', () => { it('subtraction', async () => { strictEqual(1 - 1, 0); }); + + it('pending'); }); diff --git a/test-workspaces/no-config/hello.test.js b/test-workspaces/no-config/hello.test.js index 7cc4f83..6ef6846 100644 --- a/test-workspaces/no-config/hello.test.js +++ b/test-workspaces/no-config/hello.test.js @@ -8,4 +8,6 @@ describe('math', () => { it('subtraction', async () => { strictEqual(1 - 1, 0); }); + + it('pending'); }); diff --git a/test-workspaces/simple/skip.test.js b/test-workspaces/simple/skip.test.js index 7697538..0680b3d 100644 --- a/test-workspaces/simple/skip.test.js +++ b/test-workspaces/simple/skip.test.js @@ -15,6 +15,8 @@ describe('skip-suite-2', () => { strictEqual(1 + 1, 2); }); + it('pending test'); + it('subtraction', async () => { strictEqual(1 - 1, 0); }); diff --git a/test-workspaces/source-mapped/hello.test.js b/test-workspaces/source-mapped/hello.test.js index b914ca0..119eb61 100644 --- a/test-workspaces/source-mapped/hello.test.js +++ b/test-workspaces/source-mapped/hello.test.js @@ -8,5 +8,6 @@ describe('math', () => { it('subtraction', async () => { (0, node_assert_1.strictEqual)(1 - 1, 0); }); + it('pending test'); }); //# sourceMappingURL=hello.test.js.map \ No newline at end of file diff --git a/test-workspaces/source-mapped/hello.test.js.map b/test-workspaces/source-mapped/hello.test.js.map index e980d88..5225052 100644 --- a/test-workspaces/source-mapped/hello.test.js.map +++ b/test-workspaces/source-mapped/hello.test.js.map @@ -1 +1 @@ -{"version":3,"file":"hello.test.js","sourceRoot":"","sources":["hello.test.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAE1C,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,EAAE,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;QACxB,IAAA,yBAAW,EAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC3B,IAAA,yBAAW,EAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"hello.test.js","sourceRoot":"","sources":["hello.test.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAE1C,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,EAAE,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;QACxB,IAAA,yBAAW,EAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC3B,IAAA,yBAAW,EAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,cAAc,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/test-workspaces/source-mapped/hello.test.ts b/test-workspaces/source-mapped/hello.test.ts index 8a579ad..c566006 100644 --- a/test-workspaces/source-mapped/hello.test.ts +++ b/test-workspaces/source-mapped/hello.test.ts @@ -8,4 +8,6 @@ describe('math', () => { it('subtraction', async () => { strictEqual(1 - 1, 0); }); + + it('pending test'); }); diff --git a/test-workspaces/tsnode-checkjs/test/hello.spec.ts b/test-workspaces/tsnode-checkjs/test/hello.spec.ts index a18fa68..412de12 100644 --- a/test-workspaces/tsnode-checkjs/test/hello.spec.ts +++ b/test-workspaces/tsnode-checkjs/test/hello.spec.ts @@ -4,4 +4,6 @@ describe('math', () => { it('addition', async () => { strictEqual((1 + 1) as number, 2 as any as number); }); + + it('pending test'); }); diff --git a/test-workspaces/typescript-full/hello.test.ts b/test-workspaces/typescript-full/hello.test.ts index 90b7294..4600741 100644 --- a/test-workspaces/typescript-full/hello.test.ts +++ b/test-workspaces/typescript-full/hello.test.ts @@ -22,5 +22,7 @@ describe('math', () => { strictEqual((1 - 1) as number, 0 as any as number); }); + it('pending'); + createTests(['dynamic1', 'dynamic2']) }); diff --git a/test-workspaces/typescript-full/shared.test.ts b/test-workspaces/typescript-full/shared.test.ts index 44c4865..7e2afb3 100644 --- a/test-workspaces/typescript-full/shared.test.ts +++ b/test-workspaces/typescript-full/shared.test.ts @@ -7,5 +7,7 @@ export function createTests(names: string[]) { it(name, ()=> { strictEqual((1 + 1) as number, 2 as any as number); }) + + it(`${name} pending`); } } diff --git a/test-workspaces/typescript-top-level-await/hello.test.ts b/test-workspaces/typescript-top-level-await/hello.test.ts index 5768a58..31c0ae0 100644 --- a/test-workspaces/typescript-top-level-await/hello.test.ts +++ b/test-workspaces/typescript-top-level-await/hello.test.ts @@ -23,4 +23,6 @@ describe('math', () => { it('subtraction', async () => { strictEqual((1 - 1) as number, 0 as any as number); }); + + it('pending'); }); diff --git a/test-workspaces/typescript/hello.test.ts b/test-workspaces/typescript/hello.test.ts index ad5d3e5..f64384d 100644 --- a/test-workspaces/typescript/hello.test.ts +++ b/test-workspaces/typescript/hello.test.ts @@ -28,4 +28,6 @@ describe('math', () => { it('failing', async () => { strictEqual((1 * 1) as number, 0 as any as number); }); + + it('pending'); });