BREAKING CHANGE(core): switch to esm style module

This commit is contained in:
2022-10-09 18:15:37 +02:00
parent 635f92d2bc
commit d643da29b0
41 changed files with 6592 additions and 19796 deletions

View File

@@ -1,7 +1,7 @@
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = '0';
import { tap, expect } from '@pushrocks/tapbundle';
import * as cloudlyConnectorMod from '../ts/connector.cloudly/cloudlyconnector';
import * as cloudlyConnectorMod from '../ts/connector.cloudly/cloudlyconnector.js';
tap.test('should be able to announce a container to cloudly', async () => {
const cloudlyConnector = new cloudlyConnectorMod.CloudlyConnector(null);
@@ -13,4 +13,11 @@ tap.test('should be able to announce a container to cloudly', async () => {
}, 'cloudly.lossless.one')
});
tap.test('should close the program despite socket timeout', async (toolsArg) => {
// TODO: remove when unreffed timeouts in webrequest have been solved.
toolsArg.delayFor(0).then(() => {
process.exit();
})
})
tap.start();