Skip to content

Commit

Permalink
Add tests for the "pure" option
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 12, 2020
1 parent c274a66 commit c864ef9
Show file tree
Hide file tree
Showing 27 changed files with 77 additions and 0 deletions.
@@ -0,0 +1 @@
<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pure": false }]
]
}
@@ -0,0 +1 @@
React.createElement("div", null);
@@ -0,0 +1,3 @@
/* @jsx h */

<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pure": false }]
]
}
@@ -0,0 +1,2 @@
/* @jsx h */
h("div", null);
@@ -0,0 +1 @@
<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pragma": "h", "pure": false }]
]
}
@@ -0,0 +1 @@
h("div", null);
@@ -0,0 +1 @@
<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pure": true }]
]
}
@@ -0,0 +1,2 @@
/*#__PURE__*/
React.createElement("div", null);
@@ -0,0 +1,3 @@
/* @jsx h */

<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pure": true }]
]
}
@@ -0,0 +1,4 @@
/* @jsx h */

/*#__PURE__*/
h("div", null);
@@ -0,0 +1 @@
<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pragma": "h", "pure": true }]
]
}
@@ -0,0 +1,2 @@
/*#__PURE__*/
h("div", null);
@@ -0,0 +1 @@
<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", {}]
]
}
@@ -0,0 +1,2 @@
/*#__PURE__*/
React.createElement("div", null);
@@ -0,0 +1,3 @@
/* @jsx h */

<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", {}]
]
}
@@ -0,0 +1,2 @@
/* @jsx h */
h("div", null);
@@ -0,0 +1 @@
<div />;
@@ -0,0 +1,5 @@
{
"plugins": [
["transform-react-jsx", { "pragma": "h" }]
]
}
@@ -0,0 +1 @@
h("div", null);

0 comments on commit c864ef9

Please sign in to comment.