Skip to content

Commit cd332d8

Browse files
committed
fix: tests timeout
1 parent e89f849 commit cd332d8

File tree

4 files changed

+468
-4
lines changed

4 files changed

+468
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"clean:build": "rm -rf ./node_modules/@types ; find . -name '*.js.map' -type f -delete ; find . -name '*.ts' -type f -delete",
1919
"clean:test": "rm -rf .nyc_output coverage",
2020
"clean:doc": "rm -rf docs",
21-
"clean": "npm run clean:test ; npm run clean:dts ; npm run clean:map ; npm run clean:js ; npm run clean:doc ; npm run clean:wiki",
21+
"clean": "npm run clean:test ; npm run clean:dts ; npm run clean:map ; npm run clean:js ; npm run clean:doc",
2222
"build": "tsc",
23-
"mocha": "nyc mocha",
23+
"mocha": "nyc mocha --require test/mocks/index.ts",
2424
"show:test": "/usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/coverage/index.html',{wait:false}));\"",
2525
"show:doc": "/usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/docs/index.html',{wait:false}));\"",
2626
"test": "npm run build && npm run mocha && npm run show:test && ((test ! -z \"${CI}\" && nyc report --reporter=text-lcov | coveralls) || exit 0)",

test/mocks/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*!
2+
* IMQ Unit Test Mocks
3+
*
4+
* I'm Queue Software Project
5+
* Copyright (C) 2025 imqueue.com <[email protected]>
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
* If you want to use this code in a closed source (commercial) project, you can
21+
* purchase a proprietary commercial license. Please contact us at
22+
* <[email protected]> to get commercial licensing options.
23+
*/
24+
export * from './redis';

0 commit comments

Comments
 (0)