Skip to content

Commit

Permalink
Expose items (i.e. Types, Assertions and Arrays) and remove need to t…
Browse files Browse the repository at this point in the history
…est exports (#18)
  • Loading branch information
zrosenbauer authored Jul 16, 2023
1 parent cca9bcf commit 107c27d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const config: JestConfigWithTsJest = {
roots: ['<rootDir>/src'],
testMatch: ['**/__tests__/**/*.test.ts'],
testPathIgnorePatterns: ['dist', '/node_modules/'],
coveragePathIgnorePatterns: ['src/index.ts', 'src/lib/markdown/index.ts'],
collectCoverageFrom: ['src/**/*.ts'],
coverageThreshold: {
global: {
Expand Down
12 changes: 0 additions & 12 deletions src/__tests__/exports.test.ts

This file was deleted.

8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
export { default } from './lib/Document';
export { Document } from './lib/Document';
export { Text } from './lib/Text';
export {
SupportedLanguage,
supportedLanguages,
assertSupportedLanguage,
EmojiAlias,
EmojiUnicode,
assertSupportedEmoji
} from './lib/markdown';
11 changes: 11 additions & 0 deletions src/lib/markdown/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export {
supportedLanguages,
SupportedLanguage,
assertSupportedLanguage
} from './codeBlock';
export {
supportedEmojis,
EmojiAlias,
EmojiUnicode,
assertSupportedEmoji
} from './emoji';
export * as default from './markdown';

0 comments on commit 107c27d

Please sign in to comment.