move all plugin tests out of babel-core and into their appropriate folders
This commit is contained in:
@@ -10,5 +10,8 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"babel-runtime": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-helper-plugin-test-runner": "^6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
function foo() {
|
||||
true && console.log("foo");
|
||||
blah();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
function foo() {
|
||||
true;
|
||||
blah();
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
true && console.log("foo");
|
||||
blah();
|
||||
@@ -0,0 +1,2 @@
|
||||
true;
|
||||
blah();
|
||||
3
packages/babel-plugin-transform-remove-console/test/fixtures/remove-console/options.json
vendored
Normal file
3
packages/babel-plugin-transform-remove-console/test/fixtures/remove-console/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-remove-console"]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
function foo() {
|
||||
console.log("foo");
|
||||
blah();
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
function foo() {
|
||||
blah();
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
console.log("foo");
|
||||
blah();
|
||||
@@ -0,0 +1 @@
|
||||
blah();
|
||||
@@ -0,0 +1 @@
|
||||
require("babel-helper-plugin-test-runner")(__dirname);
|
||||
Reference in New Issue
Block a user