|
31 | 31 | "execute:samples": "dev-tool samples run samples-dev", |
32 | 32 | "extract-api": "tsc -p . && api-extractor run --local", |
33 | 33 | "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", |
34 | | - "integration-test:browser": "karma start --single-run", |
35 | | - "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}/*.spec.js\"", |
36 | | - "integration-test": "npm run integration-test:node && npm run integration-test:browser", |
37 | 34 | "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", |
38 | 35 | "lint": "eslint package.json api-extractor.json src test --ext .ts", |
39 | 36 | "pack": "npm pack 2>&1", |
40 | 37 | "prebuild": "npm run clean", |
41 | | - "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", |
42 | | - "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", |
43 | | - "test": "npm run build:test && npm run unit-test && npm run integration-test", |
44 | | - "unit-test:browser": "karma start --single-run", |
45 | | - "unit-test:node": "mocha --require esm --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"dist-esm/test/{,!(browser)/**/}/*.spec.js\"", |
46 | | - "unit-test": "npm run unit-test:node && npm run unit-test:browser", |
47 | | - "temp-unit-test": "mocha -r ts-node/register --timeout 1200000 test/node/*.spec.ts" |
| 38 | + "test": "jest" |
48 | 39 | }, |
49 | 40 | "bin": { |
50 | 41 | "mqtt_pub": "./bin/pub.js", |
|
77 | 68 | "ws": "^8.2.0" |
78 | 69 | }, |
79 | 70 | "devDependencies": { |
80 | | - "@types/chai": "^4.1.6", |
81 | 71 | "@types/collections": "^5.1.2", |
82 | 72 | "@types/duplexify": "^3.6.0", |
83 | 73 | "@types/end-of-stream": "^1.4.1", |
84 | | - "@types/mocha": "^7.0.2", |
85 | 74 | "@types/node": "^12.0.0", |
86 | 75 | "@types/readable-stream": "^2.3.11", |
87 | 76 | "@types/rfdc": "^1.2.0", |
88 | | - "@types/sinon": "^9.0.4", |
89 | 77 | "@types/ws": "^8.2.0", |
90 | 78 | "aedes": "^0.46.1", |
91 | 79 | "airtap": "^4.0.3", |
92 | 80 | "browserify": "^17.0.0", |
93 | | - "chai": "^4.3.4", |
94 | 81 | "codecov": "^3.8.3", |
95 | 82 | "collections": "^5.1.12", |
96 | 83 | "duplexify": "^4.1.2", |
|
101 | 88 | "eslint-plugin-node": "^11.1.0", |
102 | 89 | "eslint-plugin-promise": "^5.1.0", |
103 | 90 | "global": "^4.4.0", |
| 91 | + "jest": "^27.4.7", |
104 | 92 | "mkdirp": "^1.0.4", |
105 | | - "mocha": "^9.1.3", |
106 | 93 | "mqtt-connection": "^4.1.0", |
107 | 94 | "nyc": "^15.1.0", |
108 | 95 | "rimraf": "^3.0.2", |
109 | 96 | "rollup": "^1.16.3", |
110 | | - "should": "^13.2.3", |
111 | | - "sinon": "^11.1.2", |
112 | 97 | "snazzy": "^9.0.0", |
113 | 98 | "standard": "^16.0.4", |
| 99 | + "ts-jest": "^27.1.2", |
114 | 100 | "ts-node": "^9.0.0", |
115 | 101 | "tsdx": "^0.14.1", |
116 | 102 | "typescript": "^4.4.3", |
|
0 commit comments