Skip to content

Commit cf40e4a

Browse files
committed
fix test script
1 parent 837f90d commit cf40e4a

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

package.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
],
99
"main": "lib/index.js",
1010
"jsnext:main": "es/index.js",
11-
"scripts": {
12-
"build": "npm run build-cjs && npm run build-es",
13-
"build-cjs": "rimraf lib && BABEL_ENV=cjs babel src -d lib",
14-
"build-es": "rimraf es && BABEL_ENV=es babel src -d es",
15-
"lint": "eslint src test *.js",
16-
"prepublish": "npm run build",
17-
"test": "mocha --compilers js:babel-core/register",
18-
"test:opts_example": "mocha --compilers js:babel-core/register --require ./test/test_helper.js --recursive --watch",
19-
"watch": "babel-node ./resources/watch.js"
20-
},
2111
"repository": {
2212
"type": "git",
2313
"url": "git+https://github.com/nodkz/graphql-compose-mongoose.git"
@@ -61,7 +51,6 @@
6151
"babel-preset-es2015-loose-native-modules": "^1.0.0",
6252
"babel-preset-stage-0": "^6.5.0",
6353
"babel-register": "^6.7.2",
64-
"babel-relay-plugin": "^0.8.0",
6554
"chai": "^3.5.0",
6655
"chai-as-promised": "^5.3.0",
6756
"chai-spies": "^0.7.1",
@@ -71,10 +60,17 @@
7160
"eslint-plugin-react": "^4.3.0",
7261
"flow": "^0.2.3",
7362
"flow-bin": "^0.27.0",
74-
"i": "^0.3.5",
7563
"mocha": "^2.5.3",
76-
"npm": "^3.9.6",
7764
"rimraf": "^2.5.2",
7865
"sane": "^1.3.4"
66+
},
67+
"scripts": {
68+
"build": "npm run build-cjs && npm run build-es",
69+
"build-cjs": "rimraf lib && BABEL_ENV=cjs babel src -d lib && cp src/definition.js lib/definition.js",
70+
"build-es": "rimraf es && BABEL_ENV=es babel src -d es && cp src/definition.js es/definition.js",
71+
"lint": "eslint src test *.js",
72+
"prepublish": "npm run build",
73+
"test": "mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",
74+
"watch": "babel-node ./resources/watch.js"
7975
}
8076
}

resources/watch.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
4-
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
8-
*/
1+
/* eslint-disable */
92

103
import sane from 'sane';
114
import { resolve as resolvePath } from 'path';

0 commit comments

Comments
 (0)