# base-test-files

> Load tests files and their dependencies for executing them with unit tests functions

Latest version **1.0.2** (published 2020-02-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install base-test-files
pnpm add base-test-files
yarn add base-test-files
bun add base-test-files
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-02-05 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | "Karkael Haunter" |
| Maintainers | karkael |
| Keywords | babel, test, file, unit, compile, promisify |

## Links

- npm: https://www.npmjs.com/package/base-test-files
- Repository: https://github.com/karkael64/base-test-files
- Homepage: https://github.com/karkael64/base-test-files#readme
- Issues: https://github.com/karkael64/base-test-files
- npm.io page: https://npm.io/package/base-test-files

## Dependencies (1)

- [babel-unifyer](https://npm.io/package/babel-unifyer.md) ^1.0.2

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-02-05
- 1.0.1 — 2020-02-04
- 1.0.0 — 2020-02-04

## README

# Base-Test-Files

Helps to translate files with Babel.js and unify them in a single script file

## Table of Contents

1. Installation
3. Simple usage
4. Documentation


## Installation

`npm install --save-dev base-test-files`


## Simple usage

```js
const runTests = require("base-test-files")
runTests()
```

## Configure

### Babel

Second parameter is the Babel.js configurator (below default configuration).

```js
const runTests = require("base-test-files")
runTests({
  presets: ["@babel/env"],
  ast: true,
  sourceMap: true,
  comments: false
})
const {setTranslator} = runTests
```

For more informations see [Babel-Unifyer](https://github.com/karkael64/babel-unifyer).

### Edit test context

```js
const runTests = require("base-test-files")
const {context} = runTests

context.window = context
context.isNaN = Number.isNaN
context.Math = Math
// etc...

runTests()
```

---
_Source: https://npm.io/package/base-test-files · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
