From 93d2fe6d7ce9c38a300e0c7ed75874916767a14b Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Tue, 16 Jan 2024 04:31:31 +0330 Subject: [PATCH] chore: Update test scripts and dependencies --- package.json | 4 +++- packages/is-number/package.json | 3 +++ packages/parse-duration/package.json | 1 - packages/tsconfig-base/tsconfig.json | 2 +- yarn.lock | 3 ++- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6fb50308..315a54ca 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "upd": "yarn set version latest; yarn up '*'; yarn up '*' -R; yarn dlx @yarnpkg/sdks vscode; yarn dedupe", "lint": "eslint . --config .eslintrc.json --ext .ts", "build": "lerna run build", - "test": "lerna run test", + "test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest --verbose", "watch": "lerna run --parallel watch", "format": "yarn run format:prettier && yarn run format:eslint", "format:eslint": "yarn run lint --fix", @@ -46,11 +46,13 @@ "@lerna-lite/publish": "^3.2.1", "@lerna-lite/run": "^3.2.1", "@lerna-lite/version": "^3.2.1", + "@types/jest": "^29.5.11", "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", "eslint": "^8.56.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", + "jest": "^29.7.0", "prettier": "^3.2.2", "typescript": "^5.3.3" }, diff --git a/packages/is-number/package.json b/packages/is-number/package.json index 6d226dda..d0b8b016 100644 --- a/packages/is-number/package.json +++ b/packages/is-number/package.json @@ -70,6 +70,7 @@ "prettier": "@alwatr/prettier-config", "scripts": { "b": "yarn run build", + "t": "yarn run test", "w": "yarn run watch", "c": "yarn run clean", "cb": "yarn run clean && yarn run build", @@ -77,6 +78,7 @@ "build": "yarn run build:ts & yarn run build:es", "build:es": "nano-build --preset=module", "build:ts": "tsc --build", + "test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest", "watch": "yarn run watch:ts & yarn run watch:es", "watch:es": "yarn run build:es --watch", "watch:ts": "yarn run build:ts --watch --preserveWatchOutput", @@ -87,6 +89,7 @@ "@alwatr/prettier-config": "workspace:^", "@alwatr/tsconfig-base": "workspace:^", "@types/node": "^20.11.3", + "jest": "^29.7.0", "typescript": "^5.3.3" } } diff --git a/packages/parse-duration/package.json b/packages/parse-duration/package.json index ea076539..8d427df6 100644 --- a/packages/parse-duration/package.json +++ b/packages/parse-duration/package.json @@ -75,7 +75,6 @@ "@alwatr/nano-build": "workspace:^", "@alwatr/prettier-config": "workspace:^", "@alwatr/tsconfig-base": "workspace:^", - "@types/jest": "^29.5.11", "@types/node": "^20.11.3", "jest": "^29.7.0", "typescript": "^5.3.3" diff --git a/packages/tsconfig-base/tsconfig.json b/packages/tsconfig-base/tsconfig.json index ff6801e9..9deb41b5 100644 --- a/packages/tsconfig-base/tsconfig.json +++ b/packages/tsconfig-base/tsconfig.json @@ -10,7 +10,7 @@ "verbatimModuleSyntax": true, "moduleDetection": "force", // "allowJs": true, - // "checkJs": true, + "checkJs": true, // "jsx": "preserve", "declaration": true, // "outFile": "./", diff --git a/yarn.lock b/yarn.lock index 93c97997..91bf0b4a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -182,7 +182,6 @@ __metadata: "@alwatr/nano-build": "workspace:^" "@alwatr/prettier-config": "workspace:^" "@alwatr/tsconfig-base": "workspace:^" - "@types/jest": "npm:^29.5.11" "@types/node": "npm:^20.11.3" jest: "npm:^29.7.0" typescript: "npm:^5.3.3" @@ -2263,11 +2262,13 @@ __metadata: "@lerna-lite/publish": "npm:^3.2.1" "@lerna-lite/run": "npm:^3.2.1" "@lerna-lite/version": "npm:^3.2.1" + "@types/jest": "npm:^29.5.11" "@typescript-eslint/eslint-plugin": "npm:^6.19.0" "@typescript-eslint/parser": "npm:^6.19.0" eslint: "npm:^8.56.0" eslint-import-resolver-typescript: "npm:^3.6.1" eslint-plugin-import: "npm:^2.29.1" + jest: "npm:^29.7.0" prettier: "npm:^3.2.2" typescript: "npm:^5.3.3" languageName: unknown