mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-23 14:22:38 +00:00
Enable TypeScript (#8074)
* Enable Typescript * Fix tests * Fix tests again * Automatically (re)build * Updates * Updates * Update shrinkwrap * Enable sourcemaps
This commit is contained in:
1 parent
321b34721f
commit
7b65dc631b
25 files changed
+4278
-419
No files matched your search
+2
-3
@@ -12,7 +12,7 @@ const debounce = require('debounce');
|
||||
describe('Bind', () => {
|
||||
let controller;
|
||||
|
||||
mockClear = (device) => {
|
||||
const mockClear = (device) => {
|
||||
for (const endpoint of device.endpoints) {
|
||||
endpoint.read.mockClear();
|
||||
endpoint.write.mockClear();
|
||||
@@ -33,7 +33,6 @@ describe('Bind', () => {
|
||||
controller = new Controller(jest.fn(), jest.fn());
|
||||
await controller.start();
|
||||
await flushPromises();
|
||||
this.coordinatorEndoint = zigbeeHerdsman.devices.coordinator.getEndpoint(1);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -47,7 +46,7 @@ describe('Bind', () => {
|
||||
await resetExtension();
|
||||
MQTT.publish.mockClear();
|
||||
});
|
||||
|
||||
|
||||
afterAll(async () => {
|
||||
jest.useRealTimers();
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user