This commit is contained in:
Kenny Daniel 2023-12-29 11:09:39 -08:00
parent 2590cbf97b
commit 0cbd543bfc
No known key found for this signature in database
GPG Key ID: 6A3C5E318BE71391
2 changed files with 22 additions and 2 deletions

@ -19,12 +19,15 @@
"types": "dist/hyparquet.d.ts",
"scripts": {
"build": "tsc",
"lint": "eslint . --ext .ts"
"lint": "eslint . --ext .ts",
"test": "vitest run"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "6.16.0",
"eslint": "8.56.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "46.9.1",
"typescript": "5.3.3"
"typescript": "5.3.3",
"vitest": "1.1.0"
}
}

17
test/package.test.ts Normal file

@ -0,0 +1,17 @@
import { describe, expect, it } from 'vitest'
import packageJson from '../package.json'
describe('package.json', () => {
it('should have the correct name', () => {
expect(packageJson.name).toBe('hyparquet')
})
it('should have a valid version', () => {
expect(packageJson.version).toMatch(/^\d+\.\d+\.\d+$/)
})
it('should have precise dependency versions', () => {
const { devDependencies } = packageJson
Object.values(devDependencies).forEach(version => {
expect(version).toMatch(/^\d+\.\d+\.\d+$/)
})
})
})