fix(node): run tests with native ESM modules instead of esm (#5194)

close #5156

---------

Co-authored-by: Septias <scoreplayer2000@gmail.comclear>
This commit is contained in:
Sebastian Klähn
2024-01-19 18:09:19 +01:00
committed by GitHub
parent e67e684ee0
commit 28d9484a13
3 changed files with 9 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ export class AccountManager extends EventEmitter {
static newTemporary() {
let directory = null
while (true) {
const randomString = Math.random().toString(36).substr(2, 5)
const randomString = Math.random().toString(36).substring(2, 5)
directory = join(tmpdir(), 'deltachat-' + randomString)
if (!existsSync(directory)) break
}