chore: secure frontend build toolchain
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_frontend_toolchain_stays_on_audited_vite_and_node_versions() -> None:
|
||||
package = json.loads((ROOT / "frontend" / "package.json").read_text(encoding="utf-8"))
|
||||
lock = json.loads((ROOT / "frontend" / "package-lock.json").read_text(encoding="utf-8"))
|
||||
|
||||
assert package["engines"]["node"] == "^20.19.0 || >=22.12.0"
|
||||
assert package["devDependencies"]["vite"] == "^7.3.6"
|
||||
assert package["devDependencies"]["@vitejs/plugin-react"] == "^5.2.0"
|
||||
assert lock["packages"]["node_modules/vite"]["version"] == "7.3.6"
|
||||
assert lock["packages"]["node_modules/esbuild"]["version"] == "0.28.1"
|
||||
|
||||
Reference in New Issue
Block a user