Skip to content

Commit

Permalink
(test): ensure globs work with multi-entry
Browse files Browse the repository at this point in the history
  • Loading branch information
agilgur5 committed Dec 14, 2019
1 parent fb173ae commit b8f0f4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/build-default/src/subdir1/glob.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const glob = 'find me with a glob pattern!';
2 changes: 2 additions & 0 deletions test/tests/tsdx-build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ describe('tsdx build', () => {
'--entry src/index.ts',
'--entry src/foo.ts',
'--entry src/subdir1/subdir1-2/index.ts',
'--entry src/**/*.ts',
'--format esm,cjs'].join(' '));

function testEntryOutput (filename) {
Expand All @@ -58,6 +59,7 @@ describe('tsdx build', () => {
testEntryOutput('index')
testEntryOutput('foo')
testEntryOutput('subdir1/subdir1-2/index')
testEntryOutput('subdir1/glob')

expect(output.code).toBe(0);
});
Expand Down

0 comments on commit b8f0f4b

Please sign in to comment.