Files
orca/config/scripts/dependency-security/audit-tools/run-audit-tool.test.mjs
OrcaWinandOrcaWin 06178ea9af test: remove low-value build and packaging test inventories (#38593)
* test: remove low-value build and packaging test inventories

* ci: retire removed dependency resolution suite invocation

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-05 08:47:58 -08:00

11 lines
393 B
JavaScript

import { describe, expect, it, vi } from 'vitest'
import { runAuditTool } from './run-audit-tool.mjs'
describe('locked audit tool execution', () => {
it('rejects an unknown executable before installing anything', () => {
const run = vi.fn()
expect(() => runAuditTool('../arbitrary-package', [], { run })).toThrow('Unknown audit tool')
expect(run).not.toHaveBeenCalled()
})
})