-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
41 lines (36 loc) · 1.04 KB
/
index.ts
File metadata and controls
41 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Fix TS not finding EventEmitter
import { EventEmitter } from 'events';
declare module 'bedrock-protocol' {
interface Connection extends EventEmitter {
}
}
import './commondata';
import { runTests } from './test';
// Map<testName, runBeforeConnection>
runTests(new Map([
['custommotd', true],
['customcommand', true],
['net-sendhook', true],
['test', true],
['actor-effects', false],
['attribute', false],
['bedrockapi-executecommand', false],
['form', false],
['lowlevel-apihooking', false],
['net-chat', false],
['net-login', false],
['net-ping', false],
['net-scorepacket', false],
['net-transferserver', false],
['setblock', false],
['net-rawpacket', false],
['lowlevel-checkclientcacheblobstatus', false]
]));
import { client } from './client';
import 'colors';
console.log("Running pre-connection tests...".yellow);
client.on('spawn', () => {
console.log("Spawned! Running in-game tests...".yellow);
// setRunning();
// require('./tests/after-connection');
});