@knapsack-pro/jest 5.6.0 → 5.7.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
@@ -31,7 +31,13 @@ Knapsack Pro wraps [Jest](https://jestjs.io) and works with your existing CI inf
31
31
 
32
32
  ## Installation
33
33
 
34
- See the [docs](https://docs.knapsackpro.com/jest/guide/) to get started.
34
+ See the [docs](https://docs.knapsackpro.com/jest/guide/) to get started:
35
+
36
+ <div align="center">
37
+ <a href="https://docs.knapsackpro.com/jest/guide/">
38
+ <img alt="Install button" src="./.github/assets/install-button.png" width="116" height="50" />
39
+ </a>
40
+ </div>
35
41
 
36
42
  ## Contributing
37
43
 
@@ -5,6 +5,7 @@ var glob = require("glob");
5
5
  var minimatch = require("minimatch");
6
6
  var core_1 = require("@knapsack-pro/core");
7
7
  var env_config_1 = require("./env-config");
8
+ var Urls = require("./urls");
8
9
  var TestFilesFinder = (function () {
9
10
  function TestFilesFinder() {
10
11
  }
@@ -25,7 +26,7 @@ var TestFilesFinder = (function () {
25
26
  .map(function (testFilePath) { return ({ path: testFilePath }); });
26
27
  if (testFiles.length === 0) {
27
28
  var knapsackProLogger = new core_1.KnapsackProLogger();
28
- var errorMessage = 'Test files cannot be found.\nPlease set KNAPSACK_PRO_TEST_FILE_PATTERN matching your test directory structure.\nLearn more: https://knapsackpro.com/faq/question/how-to-run-tests-only-from-specific-directory-in-jest';
29
+ var errorMessage = "Test files cannot be found.\nPlease set KNAPSACK_PRO_TEST_FILE_PATTERN matching your test directory structure.\nLearn more: ".concat(Urls.NO_TESTS_FOUND);
29
30
  knapsackProLogger.error(errorMessage);
30
31
  throw errorMessage;
31
32
  }
package/lib/urls.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NO_TESTS_FOUND = void 0;
4
+ exports.NO_TESTS_FOUND = 'https://knapsackpro.com/perma/jest/no-tests-found';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knapsack-pro/jest",
3
- "version": "5.6.0",
3
+ "version": "5.7.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
  "keywords": [
6
6
  "knapsack",