Skip to content

Commit f9bbd73

Browse files
committed
fix npm versions + add test
1 parent e0911ec commit f9bbd73

File tree

4 files changed

+38
-16
lines changed

4 files changed

+38
-16
lines changed

packages/components/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@
4646
"react-dom": "^18.3.1"
4747
},
4848
"devDependencies": {
49-
"@eslint/js": "^9.13.0",
49+
"@eslint/js": "9.14.0",
5050
"@testing-library/react": "16.0.1",
51-
"@types/node": "^22.8.7",
52-
"@types/react": "^18.3.12",
53-
"@types/react-dom": "^18.3.1",
54-
"@vitejs/plugin-react": "^4.3.3",
51+
"@types/node": "22.9.0",
52+
"@types/react": "18.3.12",
53+
"@types/react-dom": "18.3.1",
54+
"@vitejs/plugin-react": "4.3.3",
5555
"@vitest/coverage-v8": "2.1.4",
56-
"eslint": "^9.13.0",
57-
"eslint-plugin-react": "^7.37.2",
58-
"eslint-plugin-react-hooks": "^5.0.0",
59-
"eslint-plugin-react-refresh": "^0.4.14",
60-
"globals": "^15.11.0",
61-
"typescript": "~5.6.2",
62-
"typescript-eslint": "^8.11.0",
63-
"vite": "^5.4.10",
64-
"vite-plugin-dts": "^4.3.0",
56+
"eslint": "9.14.0",
57+
"eslint-plugin-react": "7.37.2",
58+
"eslint-plugin-react-hooks": "5.0.0",
59+
"eslint-plugin-react-refresh": "0.4.14",
60+
"globals": "15.11.0",
61+
"typescript": "5.6.3",
62+
"typescript-eslint": "8.13.0",
63+
"vite": "5.4.10",
64+
"vite-plugin-dts": "4.3.0",
6565
"vitest": "2.1.4"
6666
}
6767
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { describe, expect, it } from 'vitest'
2+
import packageJson from '../package.json'
3+
4+
describe('package.json', () => {
5+
it('should have the correct name', () => {
6+
expect(packageJson.name).toBe('@hyparam/components')
7+
})
8+
it('should have a valid version', () => {
9+
expect(packageJson.version).toMatch(/^\d+\.\d+\.\d+$/)
10+
})
11+
it('should have MIT license', () => {
12+
expect(packageJson.license).toBe('MIT')
13+
})
14+
it('should have precise dependency versions', () => {
15+
const { dependencies, devDependencies } = packageJson
16+
const allDependencies = { ...dependencies, ...devDependencies }
17+
/// peer dependencies are not checked, because the user might have different versions
18+
Object.values(allDependencies).forEach(version => {
19+
expect(version).toMatch(/^\d+\.\d+\.\d+$/)
20+
})
21+
})
22+
})

public/build/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/app.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)