From 4ce9d64349a4774a7fde36bfd74f6438b3f79c91 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 4 Sep 2023 19:33:33 +0100 Subject: [PATCH] chore: fix tests --- test/docs.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test/docs.js b/test/docs.js index 84932e782..336fbfb58 100644 --- a/test/docs.js +++ b/test/docs.js @@ -25,7 +25,7 @@ describe('docs', () => { it('should document an esm project', async () => { const module = await import(`file://${projectDir}/src/index.js`) - const exports = [...Object.keys(module), 'AnExportedInterface', 'ExportedButNotInExports', 'UsedButNotExported'] + const exports = [...Object.keys(module), 'AnExportedInterface', 'ExportedButNotInExports'] const typedocUrls = await fs.readJSON(join(projectDir, 'dist', 'typedoc-urls.json')) exports.forEach(key => { @@ -39,12 +39,6 @@ describe('docs', () => { expect(typedocUrls).to.have.property('ExportedButNotInExports') }) - it('should include definitions for classes used but not exported', async function () { - const typedocUrls = await fs.readJSON(join(projectDir, 'dist', 'typedoc-urls.json')) - - expect(typedocUrls).to.have.property('UsedButNotExported') - }) - it('should exclude definitions from node_modules', async function () { expect(fs.existsSync(join(projectDir, '.docs', 'modules', '_internal_.EventEmitter.html'))).to.be.false('included type from node_modules/@types/node') }) @@ -81,12 +75,6 @@ describe('docs', () => { expect(typedocUrls).to.have.property('ExportedButNotInExports') }) - it('should include definitions for classes used but not exported', async function () { - const typedocUrls = await fs.readJSON(join(projectDir, 'dist', 'typedoc-urls.json')) - - expect(typedocUrls).to.have.property('UsedButNotExported') - }) - it('should exclude definitions from node_modules', async function () { expect(fs.existsSync(join(projectDir, '.docs', 'modules', '_internal_.EventEmitter.html'))).to.be.false('included type from node_modules/@types/node') })