Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 4, 2023
1 parent cc9acbc commit 4ce9d64
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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')
})
Expand Down Expand Up @@ -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')
})
Expand Down

0 comments on commit 4ce9d64

Please sign in to comment.