Skip to content

Commit

Permalink
test: api
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Mar 21, 2024
1 parent 563da41 commit 8ece6c9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ github_checks:
ignore:
- '**/__mocks__/**'
- '**/__tests__/**'
- '**/interfaces/'
- '**/types/'
- '**/index.ts'
- src/interfaces/
- src/types/
- '!src/index.ts'

profiling:
critical_files_paths:
Expand Down
12 changes: 12 additions & 0 deletions src/__tests__/index.e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* @file E2E Tests - api
* @module docast-util-from-docs/tests/e2e/api
*/

import * as testSubject from '../index'

describe('e2e:docast-util-from-docs', () => {
it('should expose public api', () => {
expect(testSubject).to.have.keys(['fromDocs'])
})
})
3 changes: 2 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
'**/__tests__/**',
'**/interfaces/',
'**/types/',
'**/index.ts'
'**/index.ts',
'!src/index.ts'
],
extension: ['.ts'],
include: ['src'],
Expand Down

0 comments on commit 8ece6c9

Please sign in to comment.