@html-validate/jest-config 3.5.1 → 3.6.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
@@ -40,3 +40,10 @@ declare module "*.html" {
40
40
  export default value;
41
41
  }
42
42
  ```
43
+
44
+ ### `tsconfig.json`
45
+
46
+ This preset searches the project folder for typescript configuration in the following order:
47
+
48
+ 1. `tsconfig.jest.json`
49
+ 2. `tsconfig.json`
package/jest-preset.js CHANGED
@@ -1,11 +1,13 @@
1
- const path = require("path");
2
1
  const { version: tsjestVersion } = require("ts-jest/package.json");
2
+ const { findTsConfig } = require("./lib");
3
3
 
4
+ const cwd = process.cwd();
4
5
  const tsjestMajor = parseInt(tsjestVersion.split(".")[0], 10);
5
6
  const useLegacyTsJestConfig = tsjestMajor < 29;
6
7
 
7
8
  const tsjestOptions = {
8
9
  stringifyContentPathRegex: "\\.html?$",
10
+ tsConfig: findTsConfig(cwd),
9
11
  };
10
12
 
11
13
  const preset = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/jest-config",
3
- "version": "3.5.1",
3
+ "version": "3.6.0",
4
4
  "description": "Jest sharable preset used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "jest"
@@ -21,7 +21,7 @@
21
21
  "jest-preset.js"
22
22
  ],
23
23
  "dependencies": {
24
- "jest-junit": "14.0.1",
24
+ "jest-junit": "15.0.0",
25
25
  "jest-serializer-ansi-escapes": "2.0.1"
26
26
  },
27
27
  "peerDependencies": {