mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 10:58:16 +00:00
chore: Code changes & formatting and linting (#3552)
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import { suite } from './benchmarkSuite.js'
|
||||
|
||||
const benchmarks = await fs.readdir(new URL('./benchmarks', import.meta.url)).then((files) => files.filter((file) => file.endsWith('.js')))
|
||||
|
||||
await Promise.all(benchmarks.map(async (file) => await import(`./benchmarks/${file}`)))
|
||||
|
||||
suite
|
||||
.on('cycle', function (event: any) {
|
||||
console.log(String(event.target))
|
||||
})
|
||||
.run()
|
||||
Reference in New Issue
Block a user