Sort typescript building with mocha
This commit is contained in:
parent
a428453773
commit
4af46a8320
Binary file not shown.
|
@ -1 +1,2 @@
|
|||
yarnPath: .yarn/releases/yarn-3.0.2.cjs
|
||||
nodeLinker: node-modules # Needed to work with Mocha, see https://github.com/yarnpkg/berry/issues/638
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
"proto:build": "buf generate"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^9.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
||||
"@typescript-eslint/parser": "^4.31.1",
|
||||
"chai": "^4.3.4",
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import { expect } from "chai";
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: No types available
|
||||
import TCP from "libp2p-tcp";
|
||||
import PeerId from "peer-id";
|
||||
|
||||
import { Messenger } from "./messenger";
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import waku, { Waku, WakuMessage } from "js-waku";
|
||||
import { Waku, WakuMessage } from "js-waku";
|
||||
import {CreateOptions as WakuCreateOptions } from "js-waku/build/main/lib/waku";
|
||||
|
||||
import { Chat } from "./chat";
|
||||
import { ChatMessage } from "./chat_message";
|
||||
|
@ -13,7 +14,7 @@ export class Messenger {
|
|||
this.chatsById = new Map();
|
||||
}
|
||||
|
||||
public static async create(wakuOptions?: waku.CreateOptions) {
|
||||
public static async create(wakuOptions?: WakuCreateOptions) {
|
||||
const _wakuOptions = Object.assign({ bootstrap: true }, wakuOptions);
|
||||
const waku = await Waku.create(_wakuOptions);
|
||||
const messenger = new Messenger(waku);
|
||||
|
|
|
@ -511,6 +511,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/mocha@npm:^9.0.0":
|
||||
version: 9.0.0
|
||||
resolution: "@types/mocha@npm:9.0.0"
|
||||
checksum: 73e6edaba045bc250b69085a770d5029edfed006ed8e75344435474a2cb8d38064acd7b34b6cc62756caa845a5cf335bde66db11e8c8c6565c62a790e933704a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/ms@npm:*":
|
||||
version: 0.7.31
|
||||
resolution: "@types/ms@npm:0.7.31"
|
||||
|
@ -5524,6 +5531,7 @@ fsevents@~2.3.2:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "status-communities@workspace:packages/status-communities"
|
||||
dependencies:
|
||||
"@types/mocha": ^9.0.0
|
||||
"@typescript-eslint/eslint-plugin": ^4.31.1
|
||||
"@typescript-eslint/parser": ^4.31.1
|
||||
buffer: ^6.0.3
|
||||
|
|
Loading…
Reference in New Issue