feat: bump minimum node version to 16 and add tests (#86)

* build: add tests

* build: bump deps

* sigh

* build: install rosetta on m1
This commit is contained in:
Samuel Attard
2023-11-09 10:56:22 -08:00
committed by GitHub
parent 02119d5a83
commit 8e2842b4a3
18 changed files with 3649 additions and 1490 deletions

11
test/sha.spec.ts Normal file
View File

@@ -0,0 +1,11 @@
import * as path from 'path';
import { sha } from '../src/sha';
describe('sha', () => {
it('should correctly hash a file', async () => {
expect(await sha(path.resolve(__dirname, 'fixtures', 'tohash'))).toEqual(
'12998c017066eb0d2a70b94e6ed3192985855ce390f321bbdb832022888bd251',
);
});
});