@@ -110,12 +110,14 @@ export default testSuite(({ describe }, nodePath: string) => {
110
110
'index.ts' : outdent `
111
111
import * as foo from '@foo/index.js';
112
112
import { bar } from '~bar';
113
- export { foo, bar };` ,
113
+ import { baz } from '#baz';
114
+ export { foo, bar, baz };` ,
114
115
foo : {
115
116
'index.ts' : 'export { a } from \'@foo/a.js\';' ,
116
117
'a.ts' : 'export const a = \'a\';' ,
117
118
} ,
118
119
'bar/index.ts' : 'export const bar = \'bar\';' ,
120
+ 'baz.ts' : 'export const baz = \'baz\';' ,
119
121
} ,
120
122
'package.json' : createPackageJson ( {
121
123
exports : {
@@ -128,6 +130,7 @@ export default testSuite(({ describe }, nodePath: string) => {
128
130
paths : {
129
131
'@foo/*' : [ './src/foo/*' ] ,
130
132
'~bar' : [ './src/bar/index.ts' ] ,
133
+ '#baz' : [ './src/baz.ts' ] ,
131
134
} ,
132
135
} ,
133
136
} ) ,
@@ -144,6 +147,7 @@ export default testSuite(({ describe }, nodePath: string) => {
144
147
const content = await fixture . readFile ( 'dist/index.mjs' , 'utf8' ) ;
145
148
expect ( content ) . toMatch ( '"a"' ) ;
146
149
expect ( content ) . toMatch ( '"bar"' ) ;
150
+ expect ( content ) . toMatch ( '"baz"' ) ;
147
151
} ) ;
148
152
} ) ;
149
153
0 commit comments