diff --git a/test/mocha.opts b/test/mocha.opts index dd7708f3..80edd774 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -3,4 +3,4 @@ --slow 500 --require ts-node/register --watch-extensions ts -./test/*.{ts,js} ./test/api/index.ts \ No newline at end of file +./test/*.{ts,js} \ No newline at end of file diff --git a/test/ripple-api-test.ts b/test/ripple-api-test.ts index 7f918d57..380f7392 100644 --- a/test/ripple-api-test.ts +++ b/test/ripple-api-test.ts @@ -57,10 +57,11 @@ describe('RippleAPI [Test Runner]', function() { }) } + // Report any missing tests. const allTestedMethods = new Set(allTestSuites.map(s => s.name)); for (const methodName of allPublicMethods) { if (!allTestedMethods.has(methodName)) { - // TODO: Once migration is complete, remove this filter so that missing tests are reported. + // TODO: Once migration is complete, remove `.skip()` so that missing tests are reported as failures. it.skip(`${methodName} - no test suite found`, () => { throw new Error( `Test file not found! Create file "test/api/${methodName}/index.ts".`