Skip to content

Commit 7b13321

Browse files
committed
Format long lines and remove unused import in validate-tests
1 parent d997186 commit 7b13321

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/validate-tests.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { fileURLToPath } from 'node:url'
66

77
import { logger } from '@socketsecurity/registry/lib/logger'
88
import { pEach } from '@socketsecurity/registry/lib/promises'
9-
import { spawn } from '@socketsecurity/registry/lib/spawn'
109

1110
import constants from './constants.mjs'
1211

@@ -37,7 +36,10 @@ async function getTestFiles() {
3736
if (entry.isDirectory() && !entry.name.startsWith('.')) {
3837
// eslint-disable-next-line no-await-in-loop
3938
await collectFiles(fullPath)
40-
} else if (entry.isFile() && /\.test\.(mts|ts|js|mjs)$/.test(entry.name)) {
39+
} else if (
40+
entry.isFile() &&
41+
/\.test\.(mts|ts|js|mjs)$/.test(entry.name)
42+
) {
4143
files.push(fullPath)
4244
}
4345
}
@@ -278,7 +280,9 @@ async function main() {
278280
for (const issue of buildIssues) {
279281
logger.error(`✗ ${issue.message}`)
280282
}
281-
logger.error('\nBuild artifacts validation failed. Run build before testing.')
283+
logger.error(
284+
'\nBuild artifacts validation failed. Run build before testing.',
285+
)
282286
process.exitCode = 1
283287
return
284288
}

0 commit comments

Comments
 (0)