From a6d91b07a8e0f3486d65b0bc661923f34606351a Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Tue, 2 Jan 2024 11:06:18 -0500 Subject: [PATCH 1/2] adding test-specific tsconfig files in appropriate dirs Signed-off-by: Amber Torrise --- .../{test-tsconfig.json => tsconfig.json} | 24 +++++++---------- npm-shrinkwrap.json | 7 ++--- package.json | 9 +++---- packages/cli/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/core/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/imperative/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/provisioning/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/workflows/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zosconsole/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zosfiles/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zosjobs/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zoslogs/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zosmf/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zostso/__tests__/tsconfig.json | 27 +++++++++++++++++++ packages/zosuss/__tests__/tsconfig.json | 27 +++++++++++++++++++ 15 files changed, 342 insertions(+), 22 deletions(-) rename __tests__/{test-tsconfig.json => tsconfig.json} (58%) create mode 100644 packages/cli/__tests__/tsconfig.json create mode 100644 packages/core/__tests__/tsconfig.json create mode 100644 packages/imperative/__tests__/tsconfig.json create mode 100644 packages/provisioning/__tests__/tsconfig.json create mode 100644 packages/workflows/__tests__/tsconfig.json create mode 100644 packages/zosconsole/__tests__/tsconfig.json create mode 100644 packages/zosfiles/__tests__/tsconfig.json create mode 100644 packages/zosjobs/__tests__/tsconfig.json create mode 100644 packages/zoslogs/__tests__/tsconfig.json create mode 100644 packages/zosmf/__tests__/tsconfig.json create mode 100644 packages/zostso/__tests__/tsconfig.json create mode 100644 packages/zosuss/__tests__/tsconfig.json diff --git a/__tests__/test-tsconfig.json b/__tests__/tsconfig.json similarity index 58% rename from __tests__/test-tsconfig.json rename to __tests__/tsconfig.json index c3a54d9081..4d653bc801 100644 --- a/__tests__/test-tsconfig.json +++ b/__tests__/tsconfig.json @@ -1,32 +1,28 @@ { + // tsconfig for test files // "compilerOptions": { - "types": [ - "node", - "jest" - ], + "types": ["node", "jest"], + "lib": ["esnext"], "target": "es2015", "module": "commonjs", "declaration": true, "moduleResolution": "node", "noImplicitAny": true, - "outDir": "./lib", "preserveConstEnums": true, + "experimentalDecorators": true, "removeComments": false, "pretty": true, "sourceMap": true, - "newLine": "lf" + "newLine": "lf", + "esModuleInterop": true }, "include": [ - "./**/*.ts", - "../packages/**/__tests__/**/*.ts" - ], - "files": [ - "../__types__/wontache.d.ts" + "**/*.test.ts", + "**/*.subtest.ts", + "**/__tests__/**/*" ], "exclude": [ "lib", - "__results__/", - "__snapshots__", "node_modules" ] -} \ No newline at end of file +} diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 0b25b78d70..e95410d7d4 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -11,7 +11,7 @@ "__tests__/__packages__/*" ], "devDependencies": { - "@types/jest": "^29.0.0", + "@types/jest": "^29.5.11", "@types/node": "^14.18.28", "@types/which": "^2.0.1", "@typescript-eslint/eslint-plugin": "^5.33.0", @@ -6985,9 +6985,10 @@ } }, "node_modules/@types/jest": { - "version": "29.5.6", + "version": "29.5.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", + "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.0.0", "pretty-format": "^29.0.0" diff --git a/package.json b/package.json index 7f7a132acb..65d168c487 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "clean": "lerna run --parallel clean", "clean:exe": "cd zowex && cargo clean", "installWithBuild": "npm install && npm run build", - "checkTestsCompile": "echo \"Checking that test source compiles...\" && tsc --project __tests__/test-tsconfig.json --noEmit", + "checkTestsCompile": "echo \"Checking that test source compiles...\" && tsc --project __tests__/tsconfig.json --noEmit", "circularDependencyCheck": "lerna run --parallel circularDependencyCheck -- -- --warning --no-spinner", "lint": "eslint \"packages/**/*.ts\" \"**/__tests__/**/*.ts\"", "lint:packages": "eslint \"packages/**/*.ts\" --ignore-pattern \"**/__tests__/**/*.ts\"", @@ -39,9 +39,8 @@ "bundle:webHelp": "cd packages/imperative/web-help && node build.js", "prepare": "husky install && npm run bundle:webHelp" }, - "dependencies": {}, "devDependencies": { - "@types/jest": "^29.0.0", + "@types/jest": "^29.5.11", "@types/node": "^14.18.28", "@types/which": "^2.0.1", "@typescript-eslint/eslint-plugin": "^5.33.0", @@ -61,8 +60,8 @@ "jest-environment-node-debug": "^2.0.0", "jest-html-reporter": "^3.6.0", "jest-junit": "^12.0.0", - "jest-stare": "^2.2.0", "jest-sonar-reporter": "^2.0.0", + "jest-stare": "^2.2.0", "js-yaml": "^4.1.0", "jsonfile": "^4.0.0", "lerna": "^5.4.3", @@ -73,8 +72,8 @@ "shebang-regex": "^2.0.0", "symlink-dir": "^5.1.1", "syncpack": "^5.6.10", - "ts-node": "^7.0.1", "ts-jest": "^29.0.0", + "ts-node": "^7.0.1", "typedoc": "^0.23.10", "typescript": "^4.0.0" }, diff --git a/packages/cli/__tests__/tsconfig.json b/packages/cli/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/cli/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/core/__tests__/tsconfig.json b/packages/core/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/core/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/imperative/__tests__/tsconfig.json b/packages/imperative/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/imperative/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/provisioning/__tests__/tsconfig.json b/packages/provisioning/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/provisioning/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/workflows/__tests__/tsconfig.json b/packages/workflows/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/workflows/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zosconsole/__tests__/tsconfig.json b/packages/zosconsole/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zosconsole/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zosfiles/__tests__/tsconfig.json b/packages/zosfiles/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zosfiles/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zosjobs/__tests__/tsconfig.json b/packages/zosjobs/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zosjobs/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zoslogs/__tests__/tsconfig.json b/packages/zoslogs/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zoslogs/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zosmf/__tests__/tsconfig.json b/packages/zosmf/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zosmf/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zostso/__tests__/tsconfig.json b/packages/zostso/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zostso/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} diff --git a/packages/zosuss/__tests__/tsconfig.json b/packages/zosuss/__tests__/tsconfig.json new file mode 100644 index 0000000000..df9be0345c --- /dev/null +++ b/packages/zosuss/__tests__/tsconfig.json @@ -0,0 +1,27 @@ +{ + // tsconfig for test files // + "compilerOptions": { + "types": ["node", "jest"], + "lib": ["esnext"], + "target": "es2015", + "module": "commonjs", + "declaration": true, + "moduleResolution": "node", + "noImplicitAny": true, + "preserveConstEnums": true, + "experimentalDecorators": true, + "removeComments": false, + "pretty": true, + "sourceMap": true, + "newLine": "lf", + "esModuleInterop": true + }, + "include": [ + "**/*.test.ts", + "**/__tests__/**/*" + ], + "exclude": [ + "lib", + "node_modules" + ] +} From 42106c2528f9946d508599d38d8a86df2490c4d9 Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Wed, 3 Jan 2024 15:44:09 -0500 Subject: [PATCH 2/2] same thing, less code Signed-off-by: Amber Torrise --- packages/core/__tests__/tsconfig.json | 25 +---------------- packages/provisioning/__tests__/tsconfig.json | 25 +---------------- packages/workflows/__tests__/tsconfig.json | 25 +---------------- packages/zosconsole/__tests__/tsconfig.json | 27 ++----------------- packages/zosfiles/__tests__/tsconfig.json | 25 +---------------- packages/zosjobs/__tests__/tsconfig.json | 27 ++----------------- packages/zoslogs/__tests__/tsconfig.json | 25 +---------------- packages/zosmf/__tests__/tsconfig.json | 27 ++----------------- packages/zostso/__tests__/tsconfig.json | 27 ++----------------- packages/zosuss/__tests__/tsconfig.json | 27 ++----------------- 10 files changed, 15 insertions(+), 245 deletions(-) diff --git a/packages/core/__tests__/tsconfig.json b/packages/core/__tests__/tsconfig.json index df9be0345c..92ea165d70 100644 --- a/packages/core/__tests__/tsconfig.json +++ b/packages/core/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] + "extends": "../../__tests__/tsconfig.json" } diff --git a/packages/provisioning/__tests__/tsconfig.json b/packages/provisioning/__tests__/tsconfig.json index df9be0345c..92ea165d70 100644 --- a/packages/provisioning/__tests__/tsconfig.json +++ b/packages/provisioning/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] + "extends": "../../__tests__/tsconfig.json" } diff --git a/packages/workflows/__tests__/tsconfig.json b/packages/workflows/__tests__/tsconfig.json index df9be0345c..92ea165d70 100644 --- a/packages/workflows/__tests__/tsconfig.json +++ b/packages/workflows/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] + "extends": "../../__tests__/tsconfig.json" } diff --git a/packages/zosconsole/__tests__/tsconfig.json b/packages/zosconsole/__tests__/tsconfig.json index df9be0345c..ff21f0e2aa 100644 --- a/packages/zosconsole/__tests__/tsconfig.json +++ b/packages/zosconsole/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] -} + "extends": "../../__tests__/tsconfig.json" +} \ No newline at end of file diff --git a/packages/zosfiles/__tests__/tsconfig.json b/packages/zosfiles/__tests__/tsconfig.json index df9be0345c..92ea165d70 100644 --- a/packages/zosfiles/__tests__/tsconfig.json +++ b/packages/zosfiles/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] + "extends": "../../__tests__/tsconfig.json" } diff --git a/packages/zosjobs/__tests__/tsconfig.json b/packages/zosjobs/__tests__/tsconfig.json index df9be0345c..ff21f0e2aa 100644 --- a/packages/zosjobs/__tests__/tsconfig.json +++ b/packages/zosjobs/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] -} + "extends": "../../__tests__/tsconfig.json" +} \ No newline at end of file diff --git a/packages/zoslogs/__tests__/tsconfig.json b/packages/zoslogs/__tests__/tsconfig.json index df9be0345c..92ea165d70 100644 --- a/packages/zoslogs/__tests__/tsconfig.json +++ b/packages/zoslogs/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] + "extends": "../../__tests__/tsconfig.json" } diff --git a/packages/zosmf/__tests__/tsconfig.json b/packages/zosmf/__tests__/tsconfig.json index df9be0345c..ff21f0e2aa 100644 --- a/packages/zosmf/__tests__/tsconfig.json +++ b/packages/zosmf/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] -} + "extends": "../../__tests__/tsconfig.json" +} \ No newline at end of file diff --git a/packages/zostso/__tests__/tsconfig.json b/packages/zostso/__tests__/tsconfig.json index df9be0345c..ff21f0e2aa 100644 --- a/packages/zostso/__tests__/tsconfig.json +++ b/packages/zostso/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] -} + "extends": "../../__tests__/tsconfig.json" +} \ No newline at end of file diff --git a/packages/zosuss/__tests__/tsconfig.json b/packages/zosuss/__tests__/tsconfig.json index df9be0345c..ff21f0e2aa 100644 --- a/packages/zosuss/__tests__/tsconfig.json +++ b/packages/zosuss/__tests__/tsconfig.json @@ -1,27 +1,4 @@ { // tsconfig for test files // - "compilerOptions": { - "types": ["node", "jest"], - "lib": ["esnext"], - "target": "es2015", - "module": "commonjs", - "declaration": true, - "moduleResolution": "node", - "noImplicitAny": true, - "preserveConstEnums": true, - "experimentalDecorators": true, - "removeComments": false, - "pretty": true, - "sourceMap": true, - "newLine": "lf", - "esModuleInterop": true - }, - "include": [ - "**/*.test.ts", - "**/__tests__/**/*" - ], - "exclude": [ - "lib", - "node_modules" - ] -} + "extends": "../../__tests__/tsconfig.json" +} \ No newline at end of file