Skip to content

Commit 8186d3f

Browse files
committed
Add codecov
1 parent f60f987 commit 8186d3f

File tree

3 files changed

+576
-14
lines changed

3 files changed

+576
-14
lines changed

packages/cubejs-schema-compiler/compiler/CubeSymbols.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const R = require('ramda');
22
const UserError = require('./UserError');
33
const DynamicReference = require('./DynamicReference');
44

5-
const FunctionRegex = /function\s+\w+\(([A-Za-z0-9_,]*)|\(([\s\S]*?)\)\s+|\(?(\w+)\)?\s+=>\s/;
5+
const FunctionRegex = /function\s+\w+\(([A-Za-z0-9_,]*)|\(([\s\S]*?)\)\s*=>|\(?(\w+)\)?\s*=>/;
66
const CONTEXT_SYMBOLS = {
77
USER_CONTEXT: 'userContext',
88
FILTER_PARAMS: 'filterParams',

packages/cubejs-schema-compiler/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"node": ">=8.11.1"
1313
},
1414
"scripts": {
15-
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && codecov",
15+
"test": "nyc --reporter=lcov mocha",
1616
"lint": "eslint adapter/*.js compiler/*.js extensions/*.js scaffolding/*.js parser/SqlParser.js"
1717
},
1818
"dependencies": {
@@ -42,6 +42,7 @@
4242
"mocha": "^3.4.2",
4343
"mssql": "^6.1.0",
4444
"mysql": "^2.17.1",
45+
"nyc": "^15.0.0",
4546
"pg-promise": "^7.3.2",
4647
"request": "^2.88.0",
4748
"request-promise": "^4.2.4",

0 commit comments

Comments
 (0)