@ava/babel-preset-transform-test-files
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -8,6 +8,4 @@ [ | ||
"t.not(value, expected, [message])", | ||
"t.deepEqual(value, expected, [message])", | ||
"t.notDeepEqual(value, expected, [message])", | ||
"t.regex(contents, regex, [message])", | ||
"t.notRegex(contents, regex, [message])" | ||
] |
'use strict'; | ||
const ESPOWER_PATTERNS = require('./espower-patterns.json'); | ||
function buildPreset(context, options) { | ||
module.exports = (context, options) => { | ||
const plugins = []; | ||
if (!options || options.powerAssert !== false) { | ||
@@ -12,6 +13,6 @@ plugins.push(require('babel-plugin-espower/create')(context, { | ||
} | ||
plugins.push(require('babel-plugin-ava-throws-helper')); | ||
return {plugins}; | ||
} | ||
module.exports = buildPreset; | ||
}; |
{ | ||
"name": "@ava/babel-preset-transform-test-files", | ||
"version": "1.0.0", | ||
"description": "Test file transforms as used by AVA", | ||
"main": "index.js", | ||
"version": "2.0.0", | ||
"description": "Babel preset for use with AVA test files", | ||
"license": "MIT", | ||
"repository": "avajs/babel-preset-transform-test-files", | ||
"author": "Mark Wubben (https://novemberborn.net)", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava", | ||
"posttest": "xo", | ||
"coverage": "nyc npm test" | ||
}, | ||
"files": [ | ||
@@ -11,14 +21,2 @@ "index.js", | ||
], | ||
"scripts": { | ||
"test": "ava", | ||
"posttest": "xo", | ||
"coverage": "nyc npm test" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/avajs/babel-preset-transform-test-files.git" | ||
}, | ||
"keywords": [ | ||
@@ -28,8 +26,7 @@ "ava", | ||
], | ||
"author": "Mark Wubben (https://novemberborn.net/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/avajs/babel-preset-transform-test-files/issues" | ||
"dependencies": { | ||
"babel-plugin-ava-throws-helper": "^1.0.0", | ||
"babel-plugin-espower": "^2.3.2", | ||
"package-hash": "^1.2.0" | ||
}, | ||
"homepage": "https://github.com/avajs/babel-preset-transform-test-files#readme", | ||
"devDependencies": { | ||
@@ -44,7 +41,2 @@ "ava": "^0.17.0", | ||
}, | ||
"dependencies": { | ||
"babel-plugin-ava-throws-helper": "^1.0.0", | ||
"babel-plugin-espower": "^2.3.2", | ||
"package-hash": "^1.2.0" | ||
}, | ||
"nyc": { | ||
@@ -51,0 +43,0 @@ "reporter": [ |
@@ -1,11 +0,11 @@ | ||
# @ava/babel-preset-transform-test-files | ||
# @ava/babel-preset-transform-test-files [![Build Status](https://travis-ci.org/avajs/babel-preset-transform-test-files.svg?branch=master)](https://travis-ci.org/avajs/babel-preset-transform-test-files) | ||
A [Babel] preset for use with [AVA] test files. | ||
> [Babel] preset for use with [AVA] test files | ||
Currently contains: | ||
* [`babel-plugin-espower`](https://github.com/power-assert-js/babel-plugin-espower) | ||
and the patterns that should be enhanced | ||
* [`babel-plugin-ava-throws-helper`](https://github.com/avajs/babel-plugin-ava-throws-helper/) | ||
- [`babel-plugin-espower`](https://github.com/power-assert-js/babel-plugin-espower) and the patterns that should be enhanced | ||
- [`babel-plugin-ava-throws-helper`](https://github.com/avajs/babel-plugin-ava-throws-helper/) | ||
## Install | ||
@@ -17,6 +17,6 @@ | ||
## Usage | ||
Add `@ava/transform-test-files` to your [Babel] presets. You can disable | ||
`babel-plugin-espower` by setting the `powerAssert` option to `false`: | ||
Add `@ava/transform-test-files` to your [Babel] presets. You can disable `babel-plugin-espower` by setting the `powerAssert` option to `false`: | ||
@@ -31,6 +31,6 @@ ```json | ||
Require `@ava/babel-preset-transform-test-files/package-hash` to get a combined | ||
hash for the installed version of the preset, as well as the plugins used. | ||
Require `@ava/babel-preset-transform-test-files/package-hash` to get a combined hash for the installed version of the preset, as well as the plugins used. | ||
[AVA]: https://ava.li | ||
[Babel]: https://babeljs.io/ | ||
[Babel]: https://babeljs.io |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
4061
30
2
1
1
1