Skip to content

Commit 4963320

Browse files
Continuing to setup testing
1 parent 8e66d0c commit 4963320

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

.babelrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
{
22
"sourceMaps": "inline",
33
"presets": [
4-
"@babel/preset-typescript",
5-
"minify"
4+
"@babel/preset-typescript"
65
],
76
"plugins": [
8-
["module-resolver", {"alias": {"^@types/(.+)$": "./types/\\1"}}],
97
"@babel/plugin-proposal-object-rest-spread"
108
],
119
"env": {
1210
"main": {
1311
"presets": [
1412
["@babel/preset-env", {"targets": {"node": 10}, "useBuiltIns": "usage", "corejs": 3}],
13+
"minify"
1514
]
1615
},
1716
"browser": {
1817
"presets": [
1918
["@babel/preset-env", {"useBuiltIns": "usage", "corejs": 3}],
19+
"minify"
2020
]
2121
},
2222
"test": {
23+
"presets": [
24+
["@babel/preset-env", {"targets": {"node": "current"}, "useBuiltIns": "usage", "corejs": 3}],
25+
],
2326
"plugins": [
24-
"istanbul",
2527
"annotate-console-log"
2628
]
2729
}

package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,9 @@
1818
"repository": "github:unctionjs/fromIteratorToArray",
1919
"bugs": "https://github.com/unctionjs/fromIteratorToArray/issues",
2020
"main": "main.js",
21-
"nyc": {
22-
"require": [
23-
"@babel/register"
24-
],
25-
"sourceMap": false,
26-
"instrument": false
27-
},
2821
"scripts": {
2922
"prepublishOnly": "npm run build",
30-
"test": "NODE_ENV=test tap --100 './test.js'",
23+
"test": "BABEL_ENV=test jest --coverage",
3124
"build": "npm run build:browser && npm run build:main",
3225
"build:main": "babel --env-name main --out-file './main.js' './index.ts'",
3326
"build:browser": "babel --env-name browser --out-file './browser.js' './index.ts'",
@@ -47,7 +40,6 @@
4740
"babel-eslint": "10.0.1",
4841
"babel-jest": "24.8.0",
4942
"babel-plugin-annotate-console-log": "1.0.0",
50-
"babel-plugin-istanbul": "5.1.4",
5143
"babel-plugin-module-resolver": "3.2.0",
5244
"babel-preset-minify": "0.5.0",
5345
"eslint": "5.16.0",

test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-magic-numbers */
2-
import fromIteratorToArray from "./index.ts";
2+
import fromIteratorToArray from "./index";
33

44
test(() => {
55
expect(fromIteratorToArray(new Set([1, 2, 3]).entries())).toEqual([[1, 1], [2, 2], [3, 3]]);

0 commit comments

Comments
 (0)