Skip to content

Commit 8ece6c9

Browse files
committed
test: api
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 563da41 commit 8ece6c9

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.codecov.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ github_checks:
8383
ignore:
8484
- '**/__mocks__/**'
8585
- '**/__tests__/**'
86+
- '**/interfaces/'
87+
- '**/types/'
8688
- '**/index.ts'
87-
- src/interfaces/
88-
- src/types/
89+
- '!src/index.ts'
8990

9091
profiling:
9192
critical_files_paths:

src/__tests__/index.e2e.spec.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @file E2E Tests - api
3+
* @module docast-util-from-docs/tests/e2e/api
4+
*/
5+
6+
import * as testSubject from '../index'
7+
8+
describe('e2e:docast-util-from-docs', () => {
9+
it('should expose public api', () => {
10+
expect(testSubject).to.have.keys(['fromDocs'])
11+
})
12+
})

vitest.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
6363
'**/__tests__/**',
6464
'**/interfaces/',
6565
'**/types/',
66-
'**/index.ts'
66+
'**/index.ts',
67+
'!src/index.ts'
6768
],
6869
extension: ['.ts'],
6970
include: ['src'],

0 commit comments

Comments
 (0)