mozaik icon indicating copy to clipboard operation
mozaik copied to clipboard

fix: server broken tests

Open jadok opened this issue 5 years ago • 1 comments

Fix unit tests on the server package broken due to wrong typings.

You will find a trick by setting to any the type of Bus to make available a private membre of the class. Another weird trick: { id: 'test_client', emit: jest.fn() } as unknown as Socket to cast the object to a Socket type.

The whole server package has unit test working.

jadok avatar Oct 01 '19 20:10 jadok

For an unknown reason, travis failled to run yarn run fmt:check which succeed on my environment (windows 8, node 10.15)

jadok avatar Oct 02 '19 11:10 jadok