Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ava/babel-preset-transform-test-files

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ava/babel-preset-transform-test-files - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

espower-patterns.json

@@ -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])"
]

7

index.js
'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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc