@knapsack-pro/jest 9.0.0-rc.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,12 +47,6 @@ See the [docs](https://docs.knapsackpro.com/jest/guide/) to get started:
47
47
 
48
48
  Follow the steps in the [root README.md](https://github.com/KnapsackPro/knapsack-pro-js#contributing) to set up the project.
49
49
 
50
- You can compile TypeScript in watch mode from the root folder with:
51
-
52
- ```bash
53
- npm start -w packages/jest
54
- ```
55
-
56
50
  ### Testing
57
51
 
58
52
  To test `@knapsack-pro/jest` against a real test suite we use:
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import pkg from '@knapsack-pro/jest/package.json' with { type: 'json' };
2
3
  import { KnapsackProCore, KnapsackProLogger, } from '@knapsack-pro/core';
3
4
  import { v4 as uuidv4 } from 'uuid';
4
5
  import { EnvConfig } from './env-config.js';
@@ -6,15 +7,13 @@ import { TestFilesFinder } from './test-files-finder.js';
6
7
  import { JestCLI } from './jest-cli.js';
7
8
  const jestImport = await import('jest');
8
9
  const jest = jestImport.default ?? jestImport;
9
- const clientName = '@knapsack-pro/jest';
10
- const clientVersion = '9.0.0-rc.1';
11
10
  const jestCLIOptions = JestCLI.argvToOptions();
12
11
  const knapsackProLogger = new KnapsackProLogger();
13
12
  knapsackProLogger.debug(`Jest CLI options:\n${KnapsackProLogger.objectInspect(jestCLIOptions)}`);
14
13
  EnvConfig.loadEnvironmentVariables();
15
14
  const projectPath = process.cwd();
16
15
  const testFilesToExecute = () => TestFilesFinder.allTestFiles();
17
- const knapsackPro = new KnapsackProCore(clientName, clientVersion, testFilesToExecute);
16
+ const knapsackPro = new KnapsackProCore(pkg.name, pkg.version, testFilesToExecute);
18
17
  const onSuccess = async (queueTestFiles) => {
19
18
  const testFilePaths = queueTestFiles.map((testFile) => testFile.path);
20
19
  const jestCLICoverage = EnvConfig.coverageDirectory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knapsack-pro/jest",
3
- "version": "9.0.0-rc.1",
3
+ "version": "9.0.0",
4
4
  "description": "Knapsack Pro Jest splits Jest tests across CI nodes and makes sure that tests will run in optimal time on each CI node.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -30,13 +30,7 @@
30
30
  ],
31
31
  "license": "MIT",
32
32
  "scripts": {
33
- "start": "nodemon --ext ts --watch src/ --exec \"npm run build\"",
34
- "build": "rm -rf lib && tsc && chmod u+x lib/knapsack-pro-jest.js",
35
- "lint": "npm run eslint:check && npm run prettier:check",
36
- "eslint:check": "eslint src/**/*.ts",
37
- "eslint:format": "eslint src/**/*.ts --fix",
38
- "prettier:check": "prettier --config .prettierrc.json --check .",
39
- "prettier:format": "prettier --config .prettierrc.json --write ."
33
+ "build": "rm -rf lib && tsc && chmod u+x lib/knapsack-pro-jest.js"
40
34
  },
41
35
  "files": [
42
36
  "/lib"
@@ -52,10 +46,13 @@
52
46
  "bin": {
53
47
  "knapsack-pro-jest": "lib/knapsack-pro-jest.js"
54
48
  },
49
+ "exports": {
50
+ "./package.json": "./package.json"
51
+ },
55
52
  "dependencies": {
56
- "@knapsack-pro/core": "^9.0.0-rc.1",
53
+ "@knapsack-pro/core": "^9.0.0",
57
54
  "glob": "^11.0.3",
58
- "minimatch": "^10.0.3",
55
+ "minimatch": "^10.1.1",
59
56
  "minimist": "^1.2.8",
60
57
  "uuid": "^13.0.0"
61
58
  },
@@ -63,22 +60,9 @@
63
60
  "jest": ">=23.0.0"
64
61
  },
65
62
  "devDependencies": {
66
- "@eslint/eslintrc": "^3.3.1",
67
- "@eslint/js": "^9.35.0",
68
63
  "@types/jest": "^30.0.0",
69
- "@types/node": "^24.5.1",
70
- "@typescript-eslint/eslint-plugin": "^8.44.0",
71
- "@typescript-eslint/parser": "^8.44.0",
72
- "eslint": "^9.35.0",
73
- "eslint-config-airbnb-base": "^15.0.0",
74
- "eslint-config-prettier": "^10.1.8",
75
- "eslint-plugin-import": "^2.32.0",
76
- "eslint-plugin-jest": "^29.0.1",
77
- "eslint-plugin-prettier": "^5.5.4",
78
- "jest": "^30.1.3",
79
- "nodemon": "^3.1.10",
80
- "prettier": "^3.6.2",
81
- "ts-jest": "^29.4.2",
82
- "typescript": "^5.9.2"
64
+ "@types/node": "^24.9.2",
65
+ "jest": "^30.2.0",
66
+ "typescript": "^5.9.3"
83
67
  }
84
68
  }