Commit graph

170 commits

Author SHA1 Message Date
Romain Beaumont
fd1594b8fe fix it 2021-12-11 00:51:56 +00:00
u9g
65c2f09c9e
Lint 2021-12-10 19:48:22 -05:00
u9g
b36ad53c8c
add if to it inside describe 2021-12-10 19:46:08 -05:00
u9g
cd0294181c put if in a before 2021-12-10 16:45:43 -05:00
u9g
70e57c74a1 actually use template string 2021-12-10 16:35:22 -05:00
u9g
a5ddf69c4e put test into an it function 2021-12-10 16:28:37 -05:00
u9g
e9cc45b93e
wrong var again 2021-12-10 16:25:00 -05:00
u9g
fa26710d48
wrong var name 2021-12-10 16:22:48 -05:00
u9g
dd48a49246 use mcdata's version 2021-12-10 16:20:12 -05:00
u9g
f670fee5b4 fix test regex not triggering error prematurely 2021-12-10 15:46:22 -05:00
u9g
984da6d5f1 lint 2021-12-10 15:41:58 -05:00
u9g
80f2e8b10e Update packetCycleTests to match other tests 2021-12-10 15:32:29 -05:00
u9g
dfe88a4d8b accidently removed object.entries 2021-12-10 01:51:57 +00:00
u9g
e1a19758b3 move object creation up 2021-12-09 20:44:20 -05:00
u9g
3c373af99c dont user new operator 2021-12-09 20:41:03 -05:00
u9g
fc89f5eaa9 allow non-par-test to run for env mc version 2021-12-10 01:22:59 +00:00
Rob9315
78f038cae6
Add beforeLogin function option on server ()
* Add `beforeLogin` event on server

* optional function passin instead of emitted event

* Add documentation and bump version

* undo release push

* add test for `beforeLogin`
2021-07-06 12:42:00 +02:00
Jordan Jones
4d5dbb118e
automatic port "discovery" for packets and server tests ()
* automatic port "discovery" for packets and server tests

* Semi-colon begone!

* move getport to commons file - u9g

* Merge code
2021-06-28 22:58:21 -04:00
u9g
75e5316e8b
make port discovery automatic & update java ver for 1.17 ()
* make port discovery automatic

* try to use promise instead of promisify

* update java version

* add faster timeout

* increase timeout duration for server startup

* Update ci.yml

* update ram

* update java again

* Update clientTest.js

* actually skip online

* Update clientTest.js

* comment out

* fix comment

* properly await server data deletion

* fix serverTest for 1.17 with backwards compat

* add back dimension to login packet

* remove comment

* remove duplicated dimension in server test

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-06-29 00:27:37 +02:00
u9g
3813d4de7d
Make ci clearer as to what version is being tested ()
* Make ci clearer as to what version is being tested

* Update ci.yml

* fix

* fix
2021-06-13 04:54:16 +02:00
Grooble
1796b9693d
Add a way to encode a packet only once and send it to multiple clients ()
* Added Server#.writeToClients()

* Documented server.writeToClients()

* Added test for Server#writeToClients()

* Bad arguments for Promise.all()

* Fixed tests

* Fixed tests

* Fixed tests

* Updated tests

* Reverted timeout to the normal
2021-05-02 01:12:37 +02:00
u9g
d3c16e48fb
Add packet cycletests ()
* Add packet cycletests

* add mcPackets to deps

* Update and rename cycleTest.js to non-par-test.js

* Add exclude to npm run test for non par tests

* Add seperate job for non-par-tests

* fix indentation

* make tests non-parallel

* fix yml

* fix exclude pattern

* fix test matching

* Fix protocol not being updated for different mc versions

* dynamically get packets to test

* get rid of unused var

* rename non-par-test
2021-04-07 16:13:57 +02:00
David Duarte
5873c1a29f
Only use fullReason for the disconnect packet ()
And keep endReason for the client end reason, to avoid having
big JSON string that are more difficult to read
2020-12-05 16:52:36 +01:00
Romain Beaumont
99edabb716 update standard to version 15 2020-10-24 13:44:33 +00:00
Grooble
306b16abcd
1.16.2 and 1.16.3 support ()
* Update node-minecraft-data to 2.69.0

* Change default version to 1.16.3

* Update example

* Fix tests

* remove context change for bitfield

* Update README example

* Update tests

* Update examples

* Fix tests

* Update versionChecking for 1.16.3

* Update tests
2020-10-06 22:46:53 +02:00
Romain Beaumont
b7c5a45557
fix tests 2020-06-23 17:02:31 +02:00
Romain Beaumont
2da46e1f35
fix clientbound usage of chat and login for 1.16 2020-06-23 16:52:18 +02:00
Romain Beaumont
a7a7b5c7e2
Add 1.16-rc1 support
add topBitSetTerminatedArray native type
2020-06-23 03:28:14 +02:00
Karang
446bf2e923 Add protodef compiler 2020-05-16 16:57:04 +02:00
Romain Beaumont
33178bb94d
add new fields in login packet usage for 1.15.1 2019-12-29 23:27:04 +01:00
Romain Beaumont
4604330586
handle count with number properly in packet test 2019-12-29 23:17:38 +01:00
Romain Beaumont
83a77be10b fix for latest standard 2019-08-20 22:14:37 +00:00
Romain Beaumont
8e5264dc52 fix lint for new standard version 2019-08-03 23:29:14 +00:00
Romain Beaumont
b5b500adf8
1.14 support () 2019-05-20 01:46:02 +02:00
Romain Beaumont
822d9e12dd
fix slot value in packet tests and update some deps 2018-10-16 22:23:16 +02:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix 2018-09-24 22:08:11 +02:00
Romain Beaumont
761fe16f86
Improve test reliability and speed and move to circle ci 2
* increase vanilla server ram in tests
* add more logs
* handle client error properly
* don't wait for chat to be sent back from the server to wait 10s in clientTest
2018-08-26 04:54:17 +02:00
Romain Beaumont
465a98b989
end the client in all cases in clientTest.js
fix 
2018-08-26 02:23:39 +02:00
Romain Beaumont
34f7611d45
1.13 support 2018-08-11 00:04:21 +02:00
Romain Beaumont
9778bb920b
add test value for type u64 2018-05-14 01:00:32 +02:00
Romain Beaumont
db1cbd4941
small style fixes following standard migration 2018-05-14 00:20:21 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci 2018-05-13 22:50:16 +02:00
Romain Beaumont
ad0c76dd72
remove console.log 2018-01-01 22:48:13 +01:00
Romain Beaumont
482a4ecffd
17w50a support 2018-01-01 21:01:23 +01:00
allain
137320489c using os.tmpdir() instead of '/tmp' since it's more portable 2017-08-28 10:13:59 -04:00
allain
b44e052f28 store minecraft jars in /tmp unless overriden by ENV variable 2017-08-27 21:55:42 -04:00
Romain Beaumont
5942d42d8b
increase server test timeout a bit 2017-07-21 22:48:18 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
Romain Beaumont
1a4d9f1e84
fix version checking bug with 1.12 and share vanilla server instance between tests 2017-06-19 15:28:24 +02:00
Romain Beaumont
b445e7fb94
fix kicking message in test for 1.12 2017-06-19 14:57:28 +02:00