Skip to content

Commit

Permalink
move all plugin tests out of babel-core and into their appropriate fo…
Browse files Browse the repository at this point in the history
…lders
  • Loading branch information
sebmck committed Nov 9, 2015
1 parent 5f40b53 commit 15969a0
Show file tree
Hide file tree
Showing 1,189 changed files with 365 additions and 65 deletions.

This file was deleted.

3 changes: 3 additions & 0 deletions packages/babel-helper-plugin-test-runner/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src
test
node_modules
1 change: 1 addition & 0 deletions packages/babel-helper-plugin-test-runner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# babel-helper-plugin-test-runner
12 changes: 12 additions & 0 deletions packages/babel-helper-plugin-test-runner/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "babel-helper-plugin-test-runner",
"version": "6.0.18",
"description": "",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-plugin-test-runner",
"license": "MIT",
"main": "lib/index.js",
"dependencies": {
"babel-runtime": "^5.0.0",
"babel-helper-transform-fixture-test-runner": "^6.0.0"
}
}
7 changes: 7 additions & 0 deletions packages/babel-helper-plugin-test-runner/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import testRunner from "babel-helper-transform-fixture-test-runner";
import path from "path";

export default function (loc) {
let name = path.basename(path.dirname(loc));
testRunner(loc + "/fixtures", name);
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default function (
sourceFileName: task.actual.filename,
sourceMapTarget: task.expect.filename,
suppressDeprecationMessages: true,
babelrc: false,
sourceMap: !!(task.sourceMappings || task.sourceMap),
});

Expand Down
3 changes: 3 additions & 0 deletions packages/babel-plugin-external-helpers-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-async-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
3 changes: 3 additions & 0 deletions packages/babel-plugin-syntax-async-generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-class-properties/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-decorators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-do-expressions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-export-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-function-bind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/babel-plugin-syntax-object-rest-spread/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
5 changes: 4 additions & 1 deletion packages/babel-plugin-transform-async-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"dependencies": {
"babel-plugin-syntax-async-functions": "^6.0.14",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"babel-helper-remap-async-to-generator": "^6.0.14",
"babel-plugin-syntax-async-functions": "^6.0.14",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"babel-helper-remap-async-to-generator": "^6.0.14",
"babel-types": "^6.0.14",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"babel-template": "^6.0.15",
"babel-plugin-syntax-class-constructor-call": "^6.0.15",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"dependencies": {
"babel-plugin-syntax-class-properties": "^6.0.14",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
5 changes: 4 additions & 1 deletion packages/babel-plugin-transform-decorators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
"babel-helper-explode-class": "^6.0.14",
"babel-template": "^6.0.14",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-decorators/test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
5 changes: 4 additions & 1 deletion packages/babel-plugin-transform-do-expressions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"dependencies": {
"babel-plugin-syntax-do-expressions": "^6.0.14",
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
},
"keywords": [
"babel-plugin"
]
],
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);
5 changes: 4 additions & 1 deletion packages/babel-plugin-transform-es2015-classes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
},
"keywords": [
"babel-plugin"
]
],
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
Loading

0 comments on commit 15969a0

Please sign in to comment.