@digest/jest 4.14.5 → 4.14.6

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const scripts_1 = require("@digest/scripts");
7
+ const node_path_1 = __importDefault(require("node:path"));
8
+ const babel = scripts_1.config.babel && scripts_1.config.jestBabel;
9
+ const cache = scripts_1.config.cache;
10
+ const emotion = scripts_1.config.emotion && scripts_1.config.jestEmotion;
11
+ const graphql = scripts_1.config.graphql && scripts_1.config.jestGraphQL;
12
+ const junit = scripts_1.config.jestJUnit;
13
+ const react = scripts_1.config.react && scripts_1.config.jestReact;
14
+ const reactNative = react && scripts_1.config.reactNative && scripts_1.config.babelReactNative;
15
+ const reactNativeWeb = reactNative && scripts_1.config.reactNativeWeb;
16
+ const reports = scripts_1.config.reports;
17
+ const typescript = scripts_1.config.typescript && scripts_1.config.jestTypeScript;
18
+ const babelPrepPath = babel ?
19
+ require.resolve('@digest/jest-babel/dist/babelPrep') :
20
+ undefined;
21
+ module.exports = {
22
+ cacheDirectory: cache ?
23
+ node_path_1.default.join(cache, 'jest') :
24
+ false,
25
+ collectCoverage: Boolean(reports),
26
+ collectCoverageFrom: [
27
+ 'src/**/*.js',
28
+ 'demo/**/*.js',
29
+ 'packages/**/*.js',
30
+ '!**/__e2e__/**/*',
31
+ '!**/__tests__/**/*'
32
+ ].concat(react ?
33
+ [
34
+ 'src/**/*.jsx',
35
+ 'demo/**/*.jsx',
36
+ 'packages/**/*.jsx'
37
+ ] :
38
+ [], typescript ?
39
+ [
40
+ 'src/**/*.ts',
41
+ 'demo/**/*.ts',
42
+ 'packages/**/*.ts',
43
+ '!src/**/*.d.ts',
44
+ '!demo/**/*.d.ts',
45
+ '!packages/**/*.d.ts'
46
+ ] :
47
+ [], react && typescript ?
48
+ [
49
+ 'src/**/*.tsx',
50
+ 'demo/**/*.tsx',
51
+ 'packages/**/*.tsx'
52
+ ] :
53
+ []),
54
+ coverageDirectory: reports ?
55
+ node_path_1.default.join(reports, 'coverage') :
56
+ undefined,
57
+ coverageProvider: 'v8',
58
+ moduleDirectories: [
59
+ 'node_modules',
60
+ '<rootDir>',
61
+ process.cwd()
62
+ ],
63
+ moduleFileExtensions: [
64
+ 'json',
65
+ 'js',
66
+ 'jsx',
67
+ 'ts',
68
+ 'tsx'
69
+ ],
70
+ moduleNameMapper: Object.assign({ '\\.(css|scss|sass|less)$': 'identity-obj-proxy' }, reactNativeWeb ?
71
+ {
72
+ '^react-native$': 'react-native-web'
73
+ } :
74
+ {}),
75
+ reporters: [
76
+ 'default'
77
+ ].concat(reports && junit ?
78
+ [
79
+ [
80
+ 'jest-junit',
81
+ {
82
+ ancestorSeparator: ' › ',
83
+ classNameTemplate: '{classname}',
84
+ outputDirectory: reports,
85
+ outputName: 'junit.xml',
86
+ suiteName: 'jest tests',
87
+ titleTemplate: '{title}',
88
+ usePathForSuiteName: 'true'
89
+ }
90
+ ]
91
+ ] :
92
+ []),
93
+ rootDir: process.cwd(),
94
+ setupFiles: [
95
+ require.resolve(node_path_1.default.join('@digest', 'jest', 'share', 'setup.js'))
96
+ ].concat(scripts_1.config.jestSetup ?
97
+ [
98
+ scripts_1.config.jestSetup
99
+ ] :
100
+ []),
101
+ setupFilesAfterEnv: [].concat(react ?
102
+ [
103
+ require.resolve(node_path_1.default.join('@digest', 'jest-react', 'share', 'env.setup.js'))
104
+ ] :
105
+ []),
106
+ snapshotSerializers: [].concat(emotion ?
107
+ [
108
+ require.resolve(node_path_1.default.join('@emotion', 'jest', 'serializer'))
109
+ ] :
110
+ []),
111
+ testEnvironment: 'node',
112
+ testPathIgnorePatterns: [
113
+ '//node_modules//',
114
+ '//lib//',
115
+ '//public//',
116
+ '//static//',
117
+ '//bin//',
118
+ '.d.ts$'
119
+ ],
120
+ testRegex: '(__tests__[\\\/\\\\].*|\\.(test|spec))\\.(j|t)sx?$',
121
+ transform: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)(\\?v=[0-9]\\.[0-9]\\.[0-9])?$': 'jest-transform-stub' }, babel ?
122
+ {
123
+ '^.+\\.js$': [
124
+ 'babel-jest',
125
+ {
126
+ configFile: babelPrepPath
127
+ }
128
+ ]
129
+ } :
130
+ {}), babel && react ?
131
+ {
132
+ '^.+\\.jsx$': [
133
+ 'babel-jest',
134
+ {
135
+ configFile: babelPrepPath
136
+ }
137
+ ]
138
+ } :
139
+ {}), babel && typescript ?
140
+ {
141
+ '^.+\\.ts$': [
142
+ 'babel-jest',
143
+ {
144
+ configFile: babelPrepPath
145
+ }
146
+ ]
147
+ } :
148
+ {}), babel && react && typescript ?
149
+ {
150
+ '^.+\\.tsx$': [
151
+ 'babel-jest',
152
+ {
153
+ configFile: babelPrepPath
154
+ }
155
+ ]
156
+ } :
157
+ {}), babel && graphql ?
158
+ {
159
+ '^.+\\.(gql|graphql)$': 'jest-transform-graphql'
160
+ } :
161
+ {})
162
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/jest",
3
3
  "title": "Jest Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.14.5",
5
+ "version": "4.14.6",
6
6
  "description": "Digested Jest configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -49,5 +49,5 @@
49
49
  "coverage",
50
50
  "clover"
51
51
  ],
52
- "gitHead": "76cfdd43321f96076fe3bf46658bf15dfead0896"
52
+ "gitHead": "af58088b1b1a805901a52dc502472269dde55367"
53
53
  }