File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 16
16
"build:main" : " node build/build.js" ,
17
17
"clean" : " rm -rf dist && rm -rf lib && rm -rf dist && rm -rf coverage && rm -rf .nyc_output && rm -rf .tmp" ,
18
18
"lint" : " tslint 'src/**/*.ts' -c tslint.json -p . --fix" ,
19
- "test" : " mocha-webpack --webpack-config test/webpack.config.js --require test/bootstrap.js 'test/**/*.spec.js'" ,
20
- "test:watch" : " mocha-webpack --webpack-config test/webpack.config.js --watch --require test/bootstrap.js 'test/**/*.spec.js'" ,
21
- "test:coverage" : " mocha-webpack --webpack-config test/webpack.config.js --require test/bootstrap.js 'src/**/*.js' 'test/**/*.spec.js'" ,
19
+ "test" : " NODE_ENV=test mocha-webpack --webpack-config test/webpack.config.js --require test/bootstrap.js 'test/**/*.spec.js'" ,
20
+ "test:watch" : " NODE_ENV=test mocha-webpack --webpack-config test/webpack.config.js --watch --require test/bootstrap.js 'test/**/*.spec.js'" ,
21
+ "test:coverage" : " NODE_ENV=test mocha-webpack --webpack-config test/webpack.config.js --require test/bootstrap.js 'src/**/*.js' 'test/**/*.spec.js'" ,
22
22
"coverage" : " NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test:coverage" ,
23
23
"prepare" : " npm run lint && npm run test && npm run build"
24
24
},
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ export default class Logger {
13
13
14
14
public group ( ...messages : Array < any > ) : void {
15
15
if ( this . enabled ) {
16
- console . groupCollapsed ( '[Vuex-ORM-Apollo]' , ...messages ) ;
16
+ if ( process . env . NODE_ENV === 'test' ) {
17
+ console . group ( '[Vuex-ORM-Apollo]' , ...messages ) ;
18
+ } else {
19
+ console . groupCollapsed ( '[Vuex-ORM-Apollo]' , ...messages ) ;
20
+ }
17
21
}
18
22
}
19
23
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export default class QueryBuilder {
239
239
if ( typeof value === 'object' && value . __type ) {
240
240
// Case 2 (User!)
241
241
typeOrValue = value . __type + 'Input!' ;
242
- } else if ( key === 'id' || key . endsWith ( 'Id' ) ) {
242
+ } else if ( key === 'id' || key . endsWith ( 'Id' ) ) { // FIXME not all 'xxxId' fields are of type ID!
243
243
// Case 1 (ID!)
244
244
typeOrValue = 'ID!' ;
245
245
} else {
You can’t perform that action at this time.
0 commit comments