Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,4 @@
**/__mocks__/**
**/__tests__/**
src
yarn.lock

View File

@@ -0,0 +1,35 @@
# babel-preset-jest
> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest).
## Install
```sh
$ npm install --save-dev babel-preset-jest
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"presets": ["jest"]
}
```
### Via CLI
```sh
$ babel script.js --presets jest
```
### Via Node API
```javascript
require("babel-core").transform("code", {
presets: ["jest"]
});
```

View File

@@ -0,0 +1,13 @@
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
module.exports = {
plugins: [
require('babel-plugin-jest-hoist'),
],
};

View File

@@ -0,0 +1,46 @@
{
"_args": [
[
"babel-preset-jest@20.0.3",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project"
]
],
"_from": "babel-preset-jest@20.0.3",
"_id": "babel-preset-jest@20.0.3",
"_inBundle": false,
"_integrity": "sha1-y6yq3stdaJyh4d4TYOv8ZoYsF4o=",
"_location": "/react-scripts/babel-preset-jest",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "babel-preset-jest@20.0.3",
"name": "babel-preset-jest",
"escapedName": "babel-preset-jest",
"rawSpec": "20.0.3",
"saveSpec": null,
"fetchSpec": "20.0.3"
},
"_requiredBy": [
"/react-scripts/babel-jest"
],
"_resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-20.0.3.tgz",
"_spec": "20.0.3",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"babel-plugin-jest-hoist": "^20.0.3"
},
"description": "> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest).",
"homepage": "https://github.com/facebook/jest#readme",
"license": "BSD-3-Clause",
"main": "index.js",
"name": "babel-preset-jest",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git"
},
"version": "20.0.3"
}