mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
test: move to @testdeck/mocha
This commit is contained in:
1008
package-lock.json
generated
1008
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@
|
|||||||
"prepublishOnly": "npm ci && npm run build",
|
"prepublishOnly": "npm ci && npm run build",
|
||||||
"preversion": "npm run prepublishOnly",
|
"preversion": "npm run prepublishOnly",
|
||||||
"push": "git push && git push origin \"v$npm_package_version\"",
|
"push": "git push && git push origin \"v$npm_package_version\"",
|
||||||
"test": "nyc mocha --require ts-node/register --ui mocha-typescript 'test/**/*.spec.ts'",
|
"test": "nyc mocha --require source-map-support/register --require ts-node/register 'test/**/*.spec.ts'",
|
||||||
"lint": "eslint --ext .ts src/"
|
"lint": "eslint --ext .ts src/"
|
||||||
},
|
},
|
||||||
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
||||||
@@ -39,6 +39,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@openstapps/configuration": "0.32.2",
|
"@openstapps/configuration": "0.32.2",
|
||||||
"@openstapps/eslint-config": "1.1.0",
|
"@openstapps/eslint-config": "1.1.0",
|
||||||
|
"@testdeck/mocha": "0.2.0",
|
||||||
"@types/chai": "4.3.3",
|
"@types/chai": "4.3.3",
|
||||||
"@types/chai-as-promised": "7.1.5",
|
"@types/chai-as-promised": "7.1.5",
|
||||||
"@types/chai-spies": "1.0.3",
|
"@types/chai-spies": "1.0.3",
|
||||||
@@ -55,7 +56,6 @@
|
|||||||
"eslint-plugin-prettier": "4.2.1",
|
"eslint-plugin-prettier": "4.2.1",
|
||||||
"eslint-plugin-unicorn": "43.0.2",
|
"eslint-plugin-unicorn": "43.0.2",
|
||||||
"mocha": "9.2.2",
|
"mocha": "9.2.2",
|
||||||
"mocha-typescript": "1.1.17",
|
|
||||||
"nyc": "15.1.0",
|
"nyc": "15.1.0",
|
||||||
"prepend-file-cli": "1.0.6",
|
"prepend-file-cli": "1.0.6",
|
||||||
"prettier": "2.7.1",
|
"prettier": "2.7.1",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {
|
import {
|
||||||
deleteUndefinedProperties,
|
deleteUndefinedProperties,
|
||||||
isNodeEnvironment,
|
isNodeEnvironment,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import chai from 'chai';
|
|||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import chaiAsPromised from 'chai-as-promised';
|
import chaiAsPromised from 'chai-as-promised';
|
||||||
import chaiSpies from 'chai-spies';
|
import chaiSpies from 'chai-spies';
|
||||||
import {suite} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {Logger} from '../src/logger';
|
import {Logger} from '../src/logger';
|
||||||
import {AddLogLevel} from '../src/transformations/add-log-level';
|
import {AddLogLevel} from '../src/transformations/add-log-level';
|
||||||
import {DummyTransport} from './dummyTransport';
|
import {DummyTransport} from './dummyTransport';
|
||||||
@@ -443,7 +443,7 @@ export class LoggerSpec {
|
|||||||
const stub = LoggerSpec.sandbox.on(console, 'log', () => {
|
const stub = LoggerSpec.sandbox.on(console, 'log', () => {
|
||||||
// noop
|
// noop
|
||||||
});
|
});
|
||||||
const applyTransformationsSpy = LoggerSpec.sandbox.on(Logger, 'applyTransformations');
|
const applyTransformationsSpy = LoggerSpec.sandbox.on(new Logger(), 'applyTransformations');
|
||||||
|
|
||||||
Logger.log('Foobar');
|
Logger.log('Foobar');
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {SMTP} from '../src/smtp';
|
import {SMTP} from '../src/smtp';
|
||||||
|
|
||||||
@suite()
|
@suite()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {AddLogLevel} from '../../src/transformations/add-log-level';
|
import {AddLogLevel} from '../../src/transformations/add-log-level';
|
||||||
|
|
||||||
@suite()
|
@suite()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {Colorize} from '../../src/transformations/colorize';
|
import {Colorize} from '../../src/transformations/colorize';
|
||||||
|
|
||||||
@suite()
|
@suite()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {Timestamp} from '../../src/transformations/timestamp';
|
import {Timestamp} from '../../src/transformations/timestamp';
|
||||||
import moment = require('moment');
|
import moment = require('moment');
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from '@testdeck/mocha';
|
||||||
import {isTransportWithVerification} from '../src/common';
|
import {isTransportWithVerification} from '../src/common';
|
||||||
import {DummyTransport, VerifiableDummyTransport} from './dummyTransport';
|
import {DummyTransport, VerifiableDummyTransport} from './dummyTransport';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user