From 64deafdb3a3547d30fc721f0a96ada6a4baab172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 1 May 2026 14:35:09 +0200 Subject: [PATCH] fix: update dependencies --- .eslintrc.yml | 1 - .github/workflows/documentationjs.yml | 2 +- package.json | 14 +++++++------- src/__tests__/index.test.js | 2 ++ 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 8f2cae4..2c2ab1a 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,6 +1,5 @@ extends: cheminfo env: - jest: true node: true parserOptions: sourceType: module diff --git a/.github/workflows/documentationjs.yml b/.github/workflows/documentationjs.yml index 0ae90e1..bfa31f2 100644 --- a/.github/workflows/documentationjs.yml +++ b/.github/workflows/documentationjs.yml @@ -9,7 +9,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Build documentation uses: zakodium/documentationjs-action@v1 - name: Deploy to GitHub pages diff --git a/package.json b/package.json index 77b0299..0febd03 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "prettier": "prettier --check src", "prettier-write": "prettier --write src", "test": "npm run test-only && npm run eslint && npm run prettier", - "test-only": "jest --coverage" + "test-only": "vitest run --coverage" }, "repository": { "type": "git", @@ -31,15 +31,15 @@ }, "homepage": "https://github.com/mljs/baseline-correction-regression#readme", "devDependencies": { - "@babel/plugin-transform-modules-commonjs": "^7.24.1", - "@types/jest": "^29.5.12", + "@babel/plugin-transform-modules-commonjs": "^7.28.6", + "@vitest/coverage-v8": "^4.1.5", "eslint": "^8.56.0", "eslint-config-cheminfo": "^9.2.0", - "jest": "^29.7.0", - "prettier": "^3.2.5", - "rollup": "^4.17.2" + "prettier": "^3.8.3", + "rollup": "^4.60.2", + "vitest": "^4.1.5" }, "dependencies": { - "ml-regression-polynomial": "^3.0.1" + "ml-regression-polynomial": "^4.0.0" } } diff --git a/src/__tests__/index.test.js b/src/__tests__/index.test.js index 8b4f09f..67672de 100644 --- a/src/__tests__/index.test.js +++ b/src/__tests__/index.test.js @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + import { baselineCorrectionRegression } from '..'; // https://en.wikipedia.org/wiki/Cauchy_distribution