Add script for manual testing with mx-tester

This commit is contained in:
gnuxie 2021-09-24 10:53:19 +01:00
parent 0a6b122f5c
commit b838caee09
2 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,8 @@
"lint": "tslint --project ./tsconfig.json -t stylish", "lint": "tslint --project ./tsconfig.json -t stylish",
"start:dev": "yarn build && node lib/index.js", "start:dev": "yarn build && node lib/index.js",
"test": "ts-mocha --project ./tsconfig.json test/**/*.ts", "test": "ts-mocha --project ./tsconfig.json test/**/*.ts",
"test-integration": "NODE_ENV=harness ts-mocha --require test/integration/fixtures.ts --project ./tsconfig.json test/integration/**/*Test.ts" "test:integration": "NODE_ENV=harness ts-mocha --require test/integration/fixtures.ts --project ./tsconfig.json test/integration/**/*Test.ts",
"test:manual": "NODE_ENV=harness ts-node test/integration/manualLaunchScript.ts"
}, },
"devDependencies": { "devDependencies": {
"@types/axios": "^0.14.0", "@types/axios": "^0.14.0",

View File

@ -15,13 +15,10 @@ limitations under the License.
*/ */
import { import {
MatrixClient, MatrixClient,
Permalinks,
PantalaimonClient, PantalaimonClient,
MemoryStorageProvider MemoryStorageProvider
} from "matrix-bot-sdk"; } from "matrix-bot-sdk";
import config from "../../src/config"; import config from "../../src/config";
import * as HmacSHA1 from 'crypto-js/hmac-sha1';
import axios from 'axios';
import * as path from 'path'; import * as path from 'path';
import * as fs from 'fs/promises'; import * as fs from 'fs/promises';
import { setupMjolnir } from '../../src/setup'; import { setupMjolnir } from '../../src/setup';