Sort typescript building with mocha

This commit is contained in:
Franck Royer 2021-09-15 12:05:33 +10:00
parent a428453773
commit 4af46a8320
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
7 changed files with 13 additions and 18335 deletions

18331
.pnp.cjs generated

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +1,2 @@
yarnPath: .yarn/releases/yarn-3.0.2.cjs yarnPath: .yarn/releases/yarn-3.0.2.cjs
nodeLinker: node-modules # Needed to work with Mocha, see https://github.com/yarnpkg/berry/issues/638

View File

@ -23,6 +23,7 @@
"proto:build": "buf generate" "proto:build": "buf generate"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^4.31.1", "@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1", "@typescript-eslint/parser": "^4.31.1",
"chai": "^4.3.4", "chai": "^4.3.4",

View File

@ -1,8 +1,6 @@
import { expect } from "chai";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: No types available // @ts-ignore: No types available
import TCP from "libp2p-tcp"; import TCP from "libp2p-tcp";
import PeerId from "peer-id";
import { Messenger } from "./messenger"; import { Messenger } from "./messenger";

View File

@ -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 { Chat } from "./chat";
import { ChatMessage } from "./chat_message"; import { ChatMessage } from "./chat_message";
@ -13,7 +14,7 @@ export class Messenger {
this.chatsById = new Map(); 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 _wakuOptions = Object.assign({ bootstrap: true }, wakuOptions);
const waku = await Waku.create(_wakuOptions); const waku = await Waku.create(_wakuOptions);
const messenger = new Messenger(waku); const messenger = new Messenger(waku);

View File

@ -511,6 +511,13 @@ __metadata:
languageName: node languageName: node
linkType: hard 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:*": "@types/ms@npm:*":
version: 0.7.31 version: 0.7.31
resolution: "@types/ms@npm:0.7.31" resolution: "@types/ms@npm:0.7.31"
@ -5524,6 +5531,7 @@ fsevents@~2.3.2:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "status-communities@workspace:packages/status-communities" resolution: "status-communities@workspace:packages/status-communities"
dependencies: dependencies:
"@types/mocha": ^9.0.0
"@typescript-eslint/eslint-plugin": ^4.31.1 "@typescript-eslint/eslint-plugin": ^4.31.1
"@typescript-eslint/parser": ^4.31.1 "@typescript-eslint/parser": ^4.31.1
buffer: ^6.0.3 buffer: ^6.0.3