File tree Expand file tree Collapse file tree
test/cases/concord/inner-modules-and-extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ it ( "should resolve the alias in package.json" , function ( ) {
2+ require ( "app/file" ) . default . should . be . eql ( "file" ) ;
3+ } ) ;
4+
5+ it ( "should resolve the alias and extensions in package.json" , function ( ) {
6+ require ( "app/file2" ) . default . should . be . eql ( "correct file2" ) ;
7+ } ) ;
8+
9+ it ( "should resolve the alias in package.json" , function ( ) {
10+ require ( "thing" ) . default . should . be . eql ( "the thing" ) ;
11+ } ) ;
12+
Original file line number Diff line number Diff line change 1+ export default "file" ;
Original file line number Diff line number Diff line change 1+ export default "wrong file2" ;
Original file line number Diff line number Diff line change 1+ export default "correct file2";
Original file line number Diff line number Diff line change 1+ {
2+ "concord" : {
3+ "modules" : {
4+ "app/**" : " ./modules/app/**" ,
5+ "thing" : " ./the-thing"
6+ },
7+ "extensions" : [
8+ " .my-js" ,
9+ " .js"
10+ ]
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ export default "the thing" ;
You can’t perform that action at this time.
0 commit comments