Enable TypeScript (#8074)

* Enable Typescript

* Fix tests

* Fix tests again

* Automatically (re)build

* Updates

* Updates

* Update shrinkwrap

* Enable sourcemaps
This commit is contained in:
Koen Kanters authored and GitHub committed 2021-07-21 19:35:14 +02:00
1 parent 321b34721f
commit 7b65dc631b
25 files changed
+4278 -419

No files matched your search

+2 -3
View File
@@ -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();
})