Skip to content

Commit c7acd1b

Browse files
author
Perki
committed
Fixing some dev deps and covergae with c8
1 parent b8198c4 commit c7acd1b

File tree

6 files changed

+1175
-1932
lines changed

6 files changed

+1175
-1932
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.DS_Store
22
.idea
3-
.nyc*
43
.vscode
54
coverage/
65
dist/

components/pryv-socket.io/test/socket.io.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
/* global describe, it, before, after, beforeEach, afterEach, expect, pryv, testData */
66

7-
const cuid = require('cuid');
7+
const { createId: cuid } = require('@paralleldrive/cuid2');
88

99
require('@pryv/socket.io')(pryv);
1010

components/pryv/test/Connection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/* global describe, it, before, after, beforeEach, afterEach, expect, JSDOM, pryv, Blob, FormData */
66

77
// URL and URLSearchParams are native in Node.js and browsers
8-
const cuid = require('cuid');
8+
const { createId: cuid } = require('@paralleldrive/cuid2');
99
const testData = require('../../../test/test-data');
1010

1111
let conn = null;

justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ test-debug component *params:
6363

6464
# Run tests and generate coverage report
6565
test-cover component *params:
66-
NODE_ENV=test COMPONENT={{component}} nyc --reporter=lcov --reporter=text --report-dir=./coverage \
66+
NODE_ENV=test COMPONENT={{component}} c8 --reporter=lcov --reporter=text --reports-dir=./coverage \
6767
components-run npx mocha -- {{params}}
6868

69-
# Run tests for ci
69+
# Run tests for ci
7070
test-cover-ci:
71-
NODE_ENV=test COMPONENT=all nyc --reporter=lcov components-run npx mocha -- --timeout 20000
71+
NODE_ENV=test COMPONENT=all c8 --reporter=lcov --reports-dir=./coverage components-run npx mocha -- --timeout=20000
7272

7373
# Run browser tests (assumes browser files are built)
7474
test-browser:

0 commit comments

Comments
 (0)