mirror of
https://github.com/hanzoai/scarf-js.git
synced 2026-09-24 17:02:30 +00:00
13 lines
445 B
JavaScript
13 lines
445 B
JavaScript
const report = require('../report')
|
|
|
|
describe('Skip Traversal Flag', () => {
|
|
test('Can skip npm ls when skipTraversal is enabled', async () => {
|
|
const depInfo = await report.getDependencyInfo('./test/skip-traversal-package.json')
|
|
expect(depInfo.skippedTraversal).toBe(true)
|
|
try {
|
|
await report.getDependencyInfo()
|
|
fail('Should fail after parsing the real dependency tree and not seeing a parent')
|
|
} catch {}
|
|
})
|
|
})
|