@vyriy/jest-config 0.8.6 → 0.8.8
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 +2 -0
- package/index.js +35 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,8 @@ Reports are written to `coverage` using `json`, `text`, `text-summary`, `lcov`,
|
|
|
68
68
|
The config includes `jest-junit` alongside the default Jest reporter. This writes a JUnit report to `coverage/junit.xml`, which CI systems such as GitLab can publish as a test report artifact.
|
|
69
69
|
Jest transformer, reporter, environment, and style proxy packages are resolved from this shared config package, so consumers only need the config package and their local Jest CLI.
|
|
70
70
|
|
|
71
|
+
The transform ignore rules keep normal dependencies ignored but allow Vyriy packages and the ESM Markdown/unified ecosystem used by SSG and docs packages to pass through SWC.
|
|
72
|
+
|
|
71
73
|
## Install
|
|
72
74
|
|
|
73
75
|
With npm:
|
package/index.js
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
2
|
const requireFromPackage = createRequire(import.meta.url);
|
|
3
3
|
const resolveDependency = (request) => requireFromPackage.resolve(request);
|
|
4
|
+
const transformEsmPackages = [
|
|
5
|
+
'@vyriy',
|
|
6
|
+
'bail',
|
|
7
|
+
'ccount',
|
|
8
|
+
'character-entities',
|
|
9
|
+
'comma-separated-tokens',
|
|
10
|
+
'decode-named-character-reference',
|
|
11
|
+
'devlop',
|
|
12
|
+
'escape-string-regexp',
|
|
13
|
+
'estree-util-[^/]+',
|
|
14
|
+
'hast-util-[^/]+',
|
|
15
|
+
'html-url-attributes',
|
|
16
|
+
'is-plain-obj',
|
|
17
|
+
'lowlight',
|
|
18
|
+
'longest-streak',
|
|
19
|
+
'markdown-table',
|
|
20
|
+
'mdast-util-[^/]+',
|
|
21
|
+
'micromark',
|
|
22
|
+
'micromark-[^/]+',
|
|
23
|
+
'property-information',
|
|
24
|
+
'react-markdown',
|
|
25
|
+
'rehype-highlight',
|
|
26
|
+
'remark-[^/]+',
|
|
27
|
+
'remark-gfm',
|
|
28
|
+
'space-separated-tokens',
|
|
29
|
+
'trim-lines',
|
|
30
|
+
'trough',
|
|
31
|
+
'unified',
|
|
32
|
+
'unist-util-[^/]+',
|
|
33
|
+
'vfile',
|
|
34
|
+
'vfile-[^/]+',
|
|
35
|
+
'web-namespaces',
|
|
36
|
+
'zwitch',
|
|
37
|
+
].join('|');
|
|
4
38
|
const config = {
|
|
5
39
|
clearMocks: true,
|
|
6
40
|
collectCoverage: true,
|
|
@@ -105,7 +139,7 @@ const config = {
|
|
|
105
139
|
],
|
|
106
140
|
},
|
|
107
141
|
transformIgnorePatterns: [
|
|
108
|
-
|
|
142
|
+
`/node_modules/(?!(${transformEsmPackages})/)`,
|
|
109
143
|
],
|
|
110
144
|
};
|
|
111
145
|
export default config;
|