babel-plugin-tester
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -31,3 +31,3 @@ 'use strict'; | ||
var babel = _interopRequireWildcard(_babelCore); | ||
var babelCore = _interopRequireWildcard(_babelCore); | ||
@@ -63,6 +63,8 @@ var _stripIndent = require('strip-indent'); | ||
var _ref$plugin = _ref.plugin, | ||
var _ref$babel = _ref.babel, | ||
babel = _ref$babel === undefined ? babelCore : _ref$babel, | ||
_ref$plugin = _ref.plugin, | ||
plugin = _ref$plugin === undefined ? requiredParam('plugin') : _ref$plugin, | ||
_ref$pluginName = _ref.pluginName, | ||
pluginName = _ref$pluginName === undefined ? getPluginName(plugin) : _ref$pluginName, | ||
pluginName = _ref$pluginName === undefined ? getPluginName(plugin, babel) : _ref$pluginName, | ||
_ref$title = _ref.title, | ||
@@ -74,3 +76,3 @@ describeBlockTitle = _ref$title === undefined ? pluginName : _ref$title, | ||
filename = _ref.filename, | ||
rest = _objectWithoutProperties(_ref, ['plugin', 'pluginName', 'title', 'pluginOptions', 'tests', 'fixtures', 'filename']); | ||
rest = _objectWithoutProperties(_ref, ['babel', 'plugin', 'pluginName', 'title', 'pluginOptions', 'tests', 'fixtures', 'filename']); | ||
@@ -85,3 +87,4 @@ var testNumber = 1; | ||
fixtures, | ||
filename | ||
filename, | ||
babel | ||
}, rest)); | ||
@@ -247,3 +250,4 @@ } | ||
filename = _ref3.filename, | ||
rest = _objectWithoutProperties(_ref3, ['plugin', 'pluginOptions', 'title', 'fixtures', 'filename']); | ||
babel = _ref3.babel, | ||
rest = _objectWithoutProperties(_ref3, ['plugin', 'pluginOptions', 'title', 'fixtures', 'filename', 'babel']); | ||
@@ -331,3 +335,3 @@ describe(`${describeBlockTitle} fixtures`, function () { | ||
function getPluginName(plugin) { | ||
function getPluginName(plugin, babel) { | ||
var name = void 0; | ||
@@ -346,2 +350,7 @@ try { | ||
return name; | ||
} | ||
} | ||
/* | ||
eslint | ||
complexity: "off" | ||
*/ |
@@ -1,1 +0,1 @@ | ||
{"name":"babel-plugin-tester","version":"5.0.0","description":"Utilities for testing babel plugins","main":"dist/index.js","engines":{"node":"> 4","npm":"> 3"},"scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build","lint":"kcd-scripts lint","test":"kcd-scripts test","test:update":"npm test -- --updateSnapshot --coverage","validate":"kcd-scripts validate","precommit":"kcd-scripts precommit"},"files":["dist"],"keywords":[],"author":"Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)","license":"MIT","dependencies":{"common-tags":"^1.4.0","invariant":"^2.2.2","lodash.merge":"^4.6.0","path-exists":"^3.0.0","strip-indent":"^2.0.0"},"devDependencies":{"babel-core":"^6.25.0","babel-plugin-syntax-trailing-function-commas":"^6.22.0","babel-plugin-transform-async-generator-functions":"^6.24.1","babel-plugin-transform-async-to-generator":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.5.2","kcd-scripts":"^0.16.3"},"peerDependencies":{"babel-core":"^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js","rules":{"max-lines":0}},"eslintIgnore":["node_modules","coverage","dist","fixtures"],"babel":{"presets":[["env",{"targets":{"node":"4.5"},"exclude":["transform-regenerator"]}]],"plugins":["babel-plugin-syntax-trailing-function-commas","transform-async-to-generator","transform-async-generator-functions","transform-object-rest-spread"]},"repository":{"type":"git","url":"https://github.com/babel-utils/babel-plugin-tester.git"},"bugs":{"url":"https://github.com/babel-utils/babel-plugin-tester/issues"},"homepage":"https://github.com/babel-utils/babel-plugin-tester#readme"} | ||
{"name":"babel-plugin-tester","version":"5.1.0","description":"Utilities for testing babel plugins","main":"dist/index.js","engines":{"node":"> 4","npm":"> 3"},"scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build","lint":"kcd-scripts lint","test":"kcd-scripts test","test:update":"npm test -- --updateSnapshot --coverage","validate":"kcd-scripts validate","precommit":"kcd-scripts precommit"},"files":["dist"],"keywords":[],"author":"Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)","license":"MIT","dependencies":{"common-tags":"^1.4.0","invariant":"^2.2.2","lodash.merge":"^4.6.0","path-exists":"^3.0.0","strip-indent":"^2.0.0"},"devDependencies":{"babel-core":"^6.25.0","babel-plugin-syntax-trailing-function-commas":"^6.22.0","babel-plugin-transform-async-generator-functions":"^6.24.1","babel-plugin-transform-async-to-generator":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.5.2","kcd-scripts":"^0.16.3"},"peerDependencies":{"babel-core":"^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js","rules":{"max-lines":0}},"eslintIgnore":["node_modules","coverage","dist","fixtures"],"babel":{"presets":[["env",{"targets":{"node":"4.5"},"exclude":["transform-regenerator"]}]],"plugins":["babel-plugin-syntax-trailing-function-commas","transform-async-to-generator","transform-async-generator-functions","transform-object-rest-spread"]},"repository":{"type":"git","url":"https://github.com/babel-utils/babel-plugin-tester.git"},"bugs":{"url":"https://github.com/babel-utils/babel-plugin-tester/issues"},"homepage":"https://github.com/babel-utils/babel-plugin-tester#readme"} |
@@ -157,2 +157,8 @@ # babel-plugin-tester | ||
#### babel | ||
Use this to provide your own implementation of babel. This is particularly | ||
useful if you want to use a different version of babel than what's included | ||
in this package. | ||
#### ...rest | ||
@@ -413,4 +419,3 @@ | ||
I'm not aware of any, if you are please [make a pull request][prs] and add it | ||
here! | ||
- [`@babel/helper-plugin-test-runner`][@babel/helper-plugin-test-runner] | ||
@@ -469,1 +474,2 @@ ## Contributors | ||
[jamestweet]: https://twitter.com/thejameskyle/status/864359438819262465 | ||
[@babel/helper-plugin-test-runner]: https://github.com/babel/babel/tree/master/packages/babel-helper-plugin-test-runner |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31711
292
473