testem 3.19.0 → 3.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- const Bluebird = require('bluebird');
3
+ const { disposer } = require('./promises');
4
4
  const EventEmitter = require('events').EventEmitter;
5
5
 
6
6
  class RunTimeout {
@@ -11,7 +11,7 @@ class RunTimeout {
11
11
  static with(timeout) {
12
12
  let runTimeout = new RunTimeout(timeout);
13
13
 
14
- return runTimeout.start().disposer(() => runTimeout.stop());
14
+ return disposer(runTimeout.start(), () => runTimeout.stop());
15
15
  }
16
16
 
17
17
  start() {
@@ -23,7 +23,7 @@ class RunTimeout {
23
23
  }, this.timeout * 1000);
24
24
  }
25
25
 
26
- return Bluebird.resolve(this);
26
+ return Promise.resolve(this);
27
27
  }
28
28
 
29
29
  setTimedOut() {
@@ -39,7 +39,7 @@ class RunTimeout {
39
39
 
40
40
  try(fn) {
41
41
  if (this.timedOut) {
42
- return Bluebird.reject(new Error('Run timed out.'));
42
+ return Promise.reject(new Error('Run timed out.'));
43
43
  }
44
44
 
45
45
  return fn();
@@ -1,17 +1,17 @@
1
1
 
2
2
 
3
- const Bluebird = require('bluebird');
3
+ const { disposer } = require('./promises');
4
4
  const EventEmitter = require('events').EventEmitter;
5
5
 
6
6
  class SignalListeners extends EventEmitter {
7
7
  static with() {
8
8
  let signalListeners = new this();
9
9
 
10
- return signalListeners.add().disposer(() => signalListeners.remove());
10
+ return disposer(signalListeners.add(), () => signalListeners.remove());
11
11
  }
12
12
  }
13
13
 
14
- SignalListeners.prototype.add = Bluebird.method(function() {
14
+ SignalListeners.prototype.add = function() {
15
15
  this._boundSigInterrupt = () => {
16
16
  this.emit('signal', new Error('Received SIGINT signal'));
17
17
  };
@@ -23,16 +23,18 @@ SignalListeners.prototype.add = Bluebird.method(function() {
23
23
  };
24
24
  process.on('SIGTERM', this._boundSigTerminate);
25
25
 
26
- return this;
27
- });
26
+ return Promise.resolve(this);
27
+ };
28
28
 
29
- SignalListeners.prototype.remove = Bluebird.method(function() {
29
+ SignalListeners.prototype.remove = function() {
30
30
  if (this._boundSigInterrupt) {
31
31
  process.removeListener('SIGINT', this._boundSigInterrupt);
32
32
  }
33
33
  if (this._boundSigTerminate) {
34
34
  process.removeListener('SIGTERM', this._boundSigTerminate);
35
35
  }
36
- });
36
+
37
+ return Promise.resolve();
38
+ };
37
39
 
38
40
  module.exports = SignalListeners;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "unittest",
8
8
  "browser"
9
9
  ],
10
- "version": "3.19.0",
10
+ "version": "3.19.1",
11
11
  "author": "Toby Ho <airportyh@gmail.com>",
12
12
  "repository": {
13
13
  "type": "git",
@@ -23,11 +23,10 @@
23
23
  "dependencies": {
24
24
  "@xmldom/xmldom": "^0.8.0",
25
25
  "backbone": "^1.1.2",
26
- "bluebird": "^3.4.6",
27
26
  "charm": "^1.0.0",
28
27
  "commander": "^2.6.0",
29
28
  "compression": "^1.7.4",
30
- "consolidate": "^0.16.0",
29
+ "consolidate": "^1.0.4",
31
30
  "execa": "^9.6.1",
32
31
  "express": "^4.10.7",
33
32
  "fireworm": "^0.7.2",
@@ -38,8 +37,8 @@
38
37
  "mkdirp": "^3.0.1",
39
38
  "mustache": "^4.2.0",
40
39
  "node-notifier": "^10.0.0",
41
- "npmlog": "^6.0.0",
42
40
  "printf": "^0.6.1",
41
+ "proc-log": "^5.0.0",
43
42
  "rimraf": "^6.1.3",
44
43
  "socket.io": "^4.5.4",
45
44
  "spawn-args": "^0.2.0",
@@ -59,30 +58,30 @@
59
58
  "scripts": {
60
59
  "install:all": "npm install && npm install phantomjs-prebuilt",
61
60
  "test": "mocha tests/*_tests.js tests/**/*_tests.js",
61
+ "test:verbose": "TESTEM_VERBOSE=1 mocha tests/*_tests.js tests/**/*_tests.js",
62
62
  "cover": "cover run ./node_modules/.bin/_mocha tests/*_tests.js tests/**/*_tests.js; cover report html; open cover_html/index.html",
63
63
  "integration": "node ./bin/run-integration.js",
64
64
  "browser-tests": "cd examples/saucelabs/ && ../../testem.js ci -d",
65
65
  "lint": "eslint ."
66
66
  },
67
67
  "devDependencies": {
68
- "bluebird-retry": "^0.11.0",
69
- "browserify": "^17.0.0",
68
+ "@cypress/request": "^3.0.10",
69
+ "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
70
70
  "chai": "^6.2.2",
71
71
  "chai-files": "^1.2.0",
72
72
  "chai-shallow-deep-equal": "^1.4.4",
73
73
  "cheerio": "1.0.0-rc.12",
74
74
  "dirty-chai": "^3.0.0",
75
+ "esbuild": "^0.25.1",
75
76
  "eslint": "^9.39.4",
76
77
  "eslint-plugin-chai-expect": "^3.1.0",
77
78
  "eslint-plugin-mocha": "^11.2.0",
79
+ "fresh-tape": "^5.5.3",
78
80
  "mocha": "^11.7.5",
79
- "request": "^2.51.0",
80
- "saucie": "^3.3.3",
81
- "shelljs": "^0.8.2",
82
- "sinon": "10.0.0",
81
+ "saucie": "^4.0.1",
82
+ "sinon": "^21.0.3",
83
83
  "sinon-chai": "^4.0.1",
84
- "socket.io-client": "^4.1.2",
85
- "tape": "^5.2.2"
84
+ "socket.io-client": "^4.1.2"
86
85
  },
87
86
  "bin": {
88
87
  "testem": "./testem.js"