Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also ensure that the babelrc in the fixture folder is copied over to the working directory during tests
- Loading branch information
Showing
11 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/babel-cli/test/fixtures/babel/filename --no-comments/in-files/script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
Test comment | ||
*/ | ||
|
||
arr.map(x => x * MULTIPLIER); | ||
|
||
// END OF FILE |
3 changes: 3 additions & 0 deletions
3
packages/babel-cli/test/fixtures/babel/filename --no-comments/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"args": ["script.js", "--out-file", "script2.js", "--no-comments"] | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/babel-cli/test/fixtures/babel/filename --no-comments/out-files/script2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"use strict"; | ||
|
||
arr.map(function (x) { | ||
return x * MULTIPLIER; | ||
}); |
3 changes: 3 additions & 0 deletions
3
packages/babel-cli/test/fixtures/babel/filename babelrc no comments/.babelrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"comments": false | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/babel-cli/test/fixtures/babel/filename babelrc no comments/in-files/script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
Test comment | ||
*/ | ||
|
||
arr.map(x => x * MULTIPLIER); | ||
|
||
// END OF FILE |
3 changes: 3 additions & 0 deletions
3
packages/babel-cli/test/fixtures/babel/filename babelrc no comments/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"args": ["script.js", "--out-file", "script2.js"] | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/babel-cli/test/fixtures/babel/filename babelrc no comments/out-files/script2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"use strict"; | ||
|
||
arr.map(function (x) { | ||
return x * MULTIPLIER; | ||
}); |
7 changes: 7 additions & 0 deletions
7
packages/babel-cli/test/fixtures/babel/filename default comments/in-files/script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
Test comment | ||
*/ | ||
|
||
arr.map(x => x * MULTIPLIER); | ||
|
||
// END OF FILE |
3 changes: 3 additions & 0 deletions
3
packages/babel-cli/test/fixtures/babel/filename default comments/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"args": ["script.js", "--out-file", "script2.js"] | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/babel-cli/test/fixtures/babel/filename default comments/out-files/script2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use strict"; | ||
|
||
/* | ||
Test comment | ||
*/ | ||
|
||
arr.map(function (x) { | ||
return x * MULTIPLIER; | ||
}); | ||
|
||
// END OF FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters