Skip to content

Commit

Permalink
chore: add test files
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 25, 2019
1 parent 66a7026 commit 6241d34
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-node/package.json
Expand Up @@ -20,7 +20,7 @@
],
"dependencies": {
"@babel/register": "^7.7.4",
"commander": "^2.8.1",
"commander": "^4.0.1",
"core-js": "^3.2.1",
"lodash": "^4.17.13",
"node-environment-flags": "^1.0.5",
Expand Down
@@ -0,0 +1 @@
console.log("foo");
@@ -0,0 +1,4 @@
module.exports = function () {
console.log("Preset was loaded, so --presets was used.");
return {};
};
@@ -0,0 +1,3 @@
{
"args": ["--presets", "./presetFile.js", "index"]
}
@@ -0,0 +1,2 @@
Preset was loaded, so --presets was used.
foo
@@ -0,0 +1 @@
console.log("foo");
@@ -0,0 +1,4 @@
module.exports = function () {
console.log("Preset was loaded, so -b was used.");
return {};
};
3 changes: 3 additions & 0 deletions packages/babel-node/test/fixtures/babel-node/-b/options.json
@@ -0,0 +1,3 @@
{
"args": ["-b", "./presetFile.js", "index"]
}
2 changes: 2 additions & 0 deletions packages/babel-node/test/fixtures/babel-node/-b/stdout.txt
@@ -0,0 +1,2 @@
Preset was loaded, so -b was used.
foo

0 comments on commit 6241d34

Please sign in to comment.