From 889d50378e3bfaac4d076ce2ace17fbcabb7fbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 21 Nov 2024 16:30:32 +0100 Subject: [PATCH] chore: update dependencies --- .eslintrc.yml | 3 --- eslint.config.mjs | 3 +++ jest.config.js | 5 ----- package.json | 15 +++++++-------- src/__tests__/index.test.js | 2 ++ tsconfig.json | 3 ++- 6 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 .eslintrc.yml create mode 100644 eslint.config.mjs delete mode 100644 jest.config.js diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index c30787d..0000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,3 +0,0 @@ -extends: [cheminfo-typescript, cheminfo-typescript/jsdoc] -env: - jest: true diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..0ef396f --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,3 @@ +import cheminfo from 'eslint-config-cheminfo-typescript'; + +export default [...cheminfo]; diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 2b9d21f..0000000 --- a/jest.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - preset: 'ts-jest/presets/js-with-ts', - testEnvironment: 'node', - transform: {}, -}; diff --git a/package.json b/package.json index 0d25dc2..a2e11e4 100644 --- a/package.json +++ b/package.json @@ -33,20 +33,19 @@ "prettier": "prettier --check src", "prettier-write": "prettier --write src", "test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types", - "test-only": "jest --coverage", + "test-only": "vitest run --coverage", "build": "cheminfo-build", "tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm", "tsc-cjs": "tsc --project tsconfig.cjs.json", "tsc-esm": "tsc --project tsconfig.esm.json" }, "devDependencies": { - "@types/jest": "^29.5.12", + "@vitest/coverage-v8": "^2.1.5", "cheminfo-build": "^1.2.0", - "eslint-config-cheminfo-typescript": "^12.2.0", - "jest": "^29.7.0", - "prettier": "^3.2.5", - "rimraf": "^5.0.5", - "ts-jest": "^29.1.2", - "typescript": "^5.3.3" + "eslint-config-cheminfo-typescript": "^17.0.0", + "prettier": "^3.3.3", + "rimraf": "^6.0.1", + "typescript": "^5.6.3", + "vitest": "^2.1.5" } } diff --git a/src/__tests__/index.test.js b/src/__tests__/index.test.js index bb197a0..e304eea 100644 --- a/src/__tests__/index.test.js +++ b/src/__tests__/index.test.js @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + import testLib, { value, incrementValue } from '../index.js'; describe('testing the module', () => { diff --git a/tsconfig.json b/tsconfig.json index e6a4c65..8cd2cb0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "outDir": "lib", "sourceMap": true, "strict": true, - "target": "es2020" + "target": "es2020", + "skipLibCheck": true }, "include": ["./src/**/*"] }