Skip to content

Commit 87255e7

Browse files
committed
style: apply linter formatting fixes
- Format ternary expression in vitest.config.mts - Break long line in registry.test.mts
1 parent fd43ace commit 87255e7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.config/vitest.config.mts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ export default defineConfig({
123123
: [toPosixPath(path.resolve(projectRoot, 'test/npm/**'))]),
124124
// Exclude packages test from coverage runs - it requires() all 200+ npm packages
125125
// which pollutes coverage with unrelated code
126-
...(process.env.COVERAGE === 'true'
127-
? ['**/test/packages.test.mts']
128-
: []),
126+
...(process.env.COVERAGE === 'true' ? ['**/test/packages.test.mts'] : []),
129127
],
130128
reporters: ['default'],
131129
// Use threads for better performance

test/registry.test.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ describe(SOCKET_REGISTRY_PACKAGE_NAME, () => {
5252
})
5353

5454
it('should return undefined when ecosystem exists but package does not', () => {
55-
const result = registry.getManifestData('npm', 'definitely-does-not-exist-123')
55+
const result = registry.getManifestData(
56+
'npm',
57+
'definitely-does-not-exist-123',
58+
)
5659
expect(result).toBeUndefined()
5760
})
5861
})

0 commit comments

Comments
 (0)