mirror of
https://github.com/seepine/hash-files.git
synced 2025-08-24 18:51:17 +08:00
feat: fix nondeterministic hash with globbing, update to node20 and update pipelines
This commit is contained in:
@@ -6,23 +6,23 @@ import * as path from 'path'
|
||||
import {test} from '@jest/globals'
|
||||
|
||||
test('test sha256', async () => {
|
||||
console.log(hashHex('this is content'))
|
||||
console.info(hashHex('this is content'))
|
||||
})
|
||||
|
||||
test('test sha512', async () => {
|
||||
console.log(hashHex('this is content', 'sha512'))
|
||||
console.info(hashHex('this is content', 'sha512'))
|
||||
})
|
||||
|
||||
test('test readFile', async () => {
|
||||
const content = await readFile('./.prettierignore')
|
||||
console.log(content)
|
||||
console.info(content)
|
||||
})
|
||||
|
||||
test('test getFiles', async () => {
|
||||
const paths = await getFiles('./', ['**/*.ts', '**/package-lock.json'], {
|
||||
gitignore: true
|
||||
})
|
||||
console.log(paths)
|
||||
console.info(paths)
|
||||
})
|
||||
|
||||
test('test runs', () => {
|
||||
@@ -34,5 +34,5 @@ test('test runs', () => {
|
||||
const options: cp.ExecFileSyncOptions = {
|
||||
env: process.env
|
||||
}
|
||||
console.log(cp.execFileSync(np, [ip], options).toString())
|
||||
console.info(cp.execFileSync(np, [ip], options).toString())
|
||||
})
|
||||
|
Reference in New Issue
Block a user