Skip to content

Commit d9f34dd

Browse files
committed
style: fix formatting in build-externals.test.ts
1 parent bb19c5f commit d9f34dd

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

test/build-externals.test.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ describe('build-externals', () => {
5454
try {
5555
await fs.access(distExternalDir)
5656
} catch {
57-
expect.fail(`dist/external directory does not exist at ${distExternalDir}`)
57+
expect.fail(
58+
`dist/external directory does not exist at ${distExternalDir}`,
59+
)
5860
}
5961
})
6062

@@ -110,9 +112,7 @@ describe('build-externals', () => {
110112
if (allIssues.length > 0) {
111113
const errorMessage = [
112114
'Found unexpected stub re-exports in dist/external:',
113-
...allIssues.map(
114-
f => ` - ${f.file}: ${f.reason}`,
115-
),
115+
...allIssues.map(f => ` - ${f.file}: ${f.reason}`),
116116
'',
117117
'Make sure these packages are added to the bundling configuration in scripts/build-externals.mjs',
118118
'or add them to the intentionalStubs list if they should remain as stubs.',
@@ -123,7 +123,13 @@ describe('build-externals', () => {
123123
})
124124

125125
it('should have @inquirer modules properly bundled', async () => {
126-
const requiredInquirerModules = ['input', 'password', 'search', 'confirm', 'select']
126+
const requiredInquirerModules = [
127+
'input',
128+
'password',
129+
'search',
130+
'confirm',
131+
'select',
132+
]
127133
const inquirerDir = path.join(distExternalDir, '@inquirer')
128134

129135
try {
@@ -142,14 +148,18 @@ describe('build-externals', () => {
142148
])
143149

144150
if (stat.size <= 1000) {
145-
expect.fail(`@inquirer/${module} should be properly bundled (> 1KB), got ${stat.size} bytes`)
151+
expect.fail(
152+
`@inquirer/${module} should be properly bundled (> 1KB), got ${stat.size} bytes`,
153+
)
146154
}
147155

148156
if (isStubReexport(content)) {
149157
expect.fail(`@inquirer/${module} should not be a stub re-export`)
150158
}
151159
} catch (error) {
152-
expect.fail(`@inquirer/${module} not found or not properly bundled at ${modulePath}: ${error instanceof Error ? error.message : String(error)}`)
160+
expect.fail(
161+
`@inquirer/${module} not found or not properly bundled at ${modulePath}: ${error instanceof Error ? error.message : String(error)}`,
162+
)
153163
}
154164
})
155165

0 commit comments

Comments
 (0)