test: add test file name into error message (#1821)

This commit is contained in:
LongYinan 2023-11-20 15:56:20 +08:00 committed by GitHub
parent 7c3f8b514e
commit 751312cec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ export async function createSuite(testFile, maxMemoryUsage) {
colors.redBright(
`Potential memory leak, memory growth: ${prettyBytes(
memoryGrowth,
)}`,
)}, test file: ${testFile}`,
),
)
process.exit(1)