mirror of
https://github.com/asadbek064/hyparquet.git
synced 2025-12-05 22:41:55 +00:00
vitest
This commit is contained in:
parent
2590cbf97b
commit
0cbd543bfc
@ -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
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+$/)
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
Reference in New Issue
Block a user