move all plugin tests out of babel-core and into their appropriate folders
This commit is contained in:
@@ -11,5 +11,8 @@
|
||||
"dependencies": {
|
||||
"babel-runtime": "^5.0.0",
|
||||
"babel-helper-builder-react-jsx": "^6.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-helper-plugin-test-runner": "^6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
var x = <Component foo="bar">
|
||||
<Namespace.Component />
|
||||
</Component>
|
||||
@@ -0,0 +1 @@
|
||||
var x = Component({ foo: "bar" }, Namespace.Component(null));
|
||||
@@ -0,0 +1 @@
|
||||
var x = <div foo="bar"><font-face></font-face></div>;
|
||||
@@ -0,0 +1 @@
|
||||
var x = React.DOM.div({ foo: "bar" }, React.DOM["font-face"](null));
|
||||
3
packages/babel-plugin-transform-react-jsx-compat/test/fixtures/react-compat/options.json
vendored
Normal file
3
packages/babel-plugin-transform-react-jsx-compat/test/fixtures/react-compat/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["syntax-jsx", "transform-react-jsx-compat"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
require("babel-helper-plugin-test-runner")(__dirname);
|
||||
Reference in New Issue
Block a user