fix(smartpnpm): harden pnpm license parsing and modernize test and package configuration

This commit is contained in:
2026-05-01 21:39:17 +00:00
parent cc99ce58db
commit 5e8416d7f7
11 changed files with 6896 additions and 4896 deletions
+7 -6
View File
@@ -1,20 +1,21 @@
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as smartpnpm from '../ts/index.js'
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as smartpnpm from '../ts/index.js';
let testSmartpnpm: smartpnpm.SmartPnpm;
tap.test('first test', async () => {
testSmartpnpm = new smartpnpm.SmartPnpm(process.cwd());
expect(testSmartpnpm).toBeInstanceOf(smartpnpm.SmartPnpm);
})
});
tap.test('should list depdendencies', async () => {
const result = testSmartpnpm.getDependencyLicenseJson();
const result = await testSmartpnpm.getDependencyLicenseJson();
expect(result).toBeInstanceOf(Object);
});
tap.test('should print license summary', async () => {
await testSmartpnpm.printDependencyLicenseSummary();
})
});
tap.test('should get a simple array of licenses', async () => {
const result = await testSmartpnpm.getDependencyLicenseArray();
@@ -23,4 +24,4 @@ tap.test('should get a simple array of licenses', async () => {
tap.start()
export default tap.start();