fmt(js): npm run fix on merge (#66741)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
443981ae97
commit
c48d53413a
2 changed files with 3 additions and 11 deletions
|
|
@ -8690,9 +8690,7 @@ function ensureNodePtySpawnHelper() {
|
|||
rememberLog(`[terminal] could not chmod spawn-helper ${failure.path}: ${failure.error}`)
|
||||
}
|
||||
} catch (error) {
|
||||
rememberLog(
|
||||
`[terminal] spawn-helper exec check skipped: ${error instanceof Error ? error.message : String(error)}`
|
||||
)
|
||||
rememberLog(`[terminal] spawn-helper exec check skipped: ${error instanceof Error ? error.message : String(error)}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,10 +69,7 @@ test('needsExecBit / withExecBits treat any missing exec bit as non-executable',
|
|||
test('candidates cover every prebuild dir plus build/Release', () => {
|
||||
const root = '/pkg/node-pty'
|
||||
|
||||
const fs = fakeFs(
|
||||
{},
|
||||
{ [join(root, 'prebuilds')]: ['darwin-arm64', 'darwin-x64', 'linux-x64'] }
|
||||
)
|
||||
const fs = fakeFs({}, { [join(root, 'prebuilds')]: ['darwin-arm64', 'darwin-x64', 'linux-x64'] })
|
||||
|
||||
assert.deepEqual(spawnHelperCandidates(root, fs), [
|
||||
join(root, 'prebuilds', 'darwin-arm64', 'spawn-helper'),
|
||||
|
|
@ -117,10 +114,7 @@ test('chmod failures are collected, not thrown', () => {
|
|||
const root = '/pkg/node-pty'
|
||||
const arm = join(root, 'prebuilds', 'darwin-arm64', 'spawn-helper')
|
||||
|
||||
const fs = fakeFs(
|
||||
{ [arm]: { mode: 0o644, chmodThrows: true } },
|
||||
{ [join(root, 'prebuilds')]: ['darwin-arm64'] }
|
||||
)
|
||||
const fs = fakeFs({ [arm]: { mode: 0o644, chmodThrows: true } }, { [join(root, 'prebuilds')]: ['darwin-arm64'] })
|
||||
|
||||
const result = ensureSpawnHelperExecutable(root, fs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue