@procore/hammer-test-jest 0.6.0 → 0.8.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/CHANGELOG.md +25 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +12 -5
- package/dist/index.mjs +9 -3
- package/dist/transforms/file.mjs +2 -2
- package/dist/transforms/file.test.js +12182 -11333
- package/dist/transforms/file.test.mjs +12186 -11337
- package/dist/transforms/reactSvg.js +29 -21
- package/dist/transforms/reactSvg.mjs +31 -23
- package/dist/transforms/reactSvg.test.js +12252 -11379
- package/dist/transforms/reactSvg.test.mjs +12256 -11383
- package/package.json +19 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @procore/hammer-test-jest
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9407067: Add new general command `init` for hammer and all plugins
|
|
8
|
+
- a3dadc6: Update engine.node version with actual supported node versions
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- bbcfdd5: Fix REQUIRE_ESM error in reactSvg transform
|
|
13
|
+
- Updated dependencies [2aa7e7b]
|
|
14
|
+
- Updated dependencies [9407067]
|
|
15
|
+
- @procore/hammer-types@0.5.0
|
|
16
|
+
|
|
17
|
+
## 0.7.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 007e20f: Modify hammer:test command to enable fileFilters option, to allow users to specify a list of files to run tests on when using the hammer:test command.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [007e20f]
|
|
26
|
+
- @procore/hammer-types@0.4.0
|
|
27
|
+
|
|
3
28
|
## 0.6.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _procore_hammer_types from '@procore/hammer-types';
|
|
2
2
|
|
|
3
|
+
declare const init: (rootDir: string, config: _procore_hammer_types.HammerConfig) => Promise<void>;
|
|
3
4
|
declare const test: (rootDir: string, config: _procore_hammer_types.HammerConfig, options: {
|
|
4
5
|
watch: boolean;
|
|
5
6
|
coverage: boolean;
|
|
@@ -7,6 +8,7 @@ declare const test: (rootDir: string, config: _procore_hammer_types.HammerConfig
|
|
|
7
8
|
silent: boolean;
|
|
8
9
|
serial: boolean;
|
|
9
10
|
debug: boolean;
|
|
11
|
+
fileFilters?: string[];
|
|
10
12
|
}) => Promise<void>;
|
|
11
13
|
|
|
12
|
-
export { test };
|
|
14
|
+
export { init, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _procore_hammer_types from '@procore/hammer-types';
|
|
2
2
|
|
|
3
|
+
declare const init: (rootDir: string, config: _procore_hammer_types.HammerConfig) => Promise<void>;
|
|
3
4
|
declare const test: (rootDir: string, config: _procore_hammer_types.HammerConfig, options: {
|
|
4
5
|
watch: boolean;
|
|
5
6
|
coverage: boolean;
|
|
@@ -7,6 +8,7 @@ declare const test: (rootDir: string, config: _procore_hammer_types.HammerConfig
|
|
|
7
8
|
silent: boolean;
|
|
8
9
|
serial: boolean;
|
|
9
10
|
debug: boolean;
|
|
11
|
+
fileFilters?: string[];
|
|
10
12
|
}) => Promise<void>;
|
|
11
13
|
|
|
12
|
-
export { test };
|
|
14
|
+
export { init, test };
|
package/dist/index.js
CHANGED
|
@@ -30,12 +30,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
init: () => init,
|
|
33
34
|
test: () => test
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(src_exports);
|
|
36
37
|
|
|
37
|
-
// ../../node_modules/.store/tsup-virtual-
|
|
38
|
-
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(
|
|
38
|
+
// ../../node_modules/.store/tsup-virtual-e96d96848d/package/assets/cjs_shims.js
|
|
39
|
+
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
39
40
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
40
41
|
|
|
41
42
|
// src/performTest.ts
|
|
@@ -200,7 +201,6 @@ var allowedFlags = [
|
|
|
200
201
|
"coverage",
|
|
201
202
|
"ci",
|
|
202
203
|
"silent",
|
|
203
|
-
"serial",
|
|
204
204
|
"debug"
|
|
205
205
|
];
|
|
206
206
|
function generateArgv(options) {
|
|
@@ -230,17 +230,24 @@ async function performTest(options) {
|
|
|
230
230
|
];
|
|
231
231
|
(0, import_child_process.spawn)("node", debugCommand, { stdio: "inherit" });
|
|
232
232
|
} else {
|
|
233
|
-
|
|
233
|
+
const args = ["--config", config, ...argv];
|
|
234
|
+
if (options.fileFilters) {
|
|
235
|
+
args.unshift(...options.fileFilters);
|
|
236
|
+
}
|
|
237
|
+
return jest.run(args);
|
|
234
238
|
}
|
|
235
239
|
}
|
|
236
240
|
|
|
237
241
|
// src/index.ts
|
|
238
|
-
var { test } = {
|
|
242
|
+
var { init, test } = {
|
|
243
|
+
init: async function init2() {
|
|
244
|
+
},
|
|
239
245
|
test: async function test2(rootDir, config, options) {
|
|
240
246
|
await performTest({ ...options, rootDir, config });
|
|
241
247
|
}
|
|
242
248
|
};
|
|
243
249
|
// Annotate the CommonJS export names for ESM import in node:
|
|
244
250
|
0 && (module.exports = {
|
|
251
|
+
init,
|
|
245
252
|
test
|
|
246
253
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -160,7 +160,6 @@ var allowedFlags = [
|
|
|
160
160
|
"coverage",
|
|
161
161
|
"ci",
|
|
162
162
|
"silent",
|
|
163
|
-
"serial",
|
|
164
163
|
"debug"
|
|
165
164
|
];
|
|
166
165
|
function generateArgv(options) {
|
|
@@ -190,16 +189,23 @@ async function performTest(options) {
|
|
|
190
189
|
];
|
|
191
190
|
spawn("node", debugCommand, { stdio: "inherit" });
|
|
192
191
|
} else {
|
|
193
|
-
|
|
192
|
+
const args = ["--config", config, ...argv];
|
|
193
|
+
if (options.fileFilters) {
|
|
194
|
+
args.unshift(...options.fileFilters);
|
|
195
|
+
}
|
|
196
|
+
return jest.run(args);
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
// src/index.ts
|
|
198
|
-
var { test } = {
|
|
201
|
+
var { init, test } = {
|
|
202
|
+
init: async function init2() {
|
|
203
|
+
},
|
|
199
204
|
test: async function test2(rootDir, config, options) {
|
|
200
205
|
await performTest({ ...options, rootDir, config });
|
|
201
206
|
}
|
|
202
207
|
};
|
|
203
208
|
export {
|
|
209
|
+
init,
|
|
204
210
|
test
|
|
205
211
|
};
|
package/dist/transforms/file.mjs
CHANGED
|
@@ -6,9 +6,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
6
6
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
// ../../node_modules/.store/tsup-virtual-
|
|
9
|
+
// ../../node_modules/.store/tsup-virtual-e96d96848d/package/assets/esm_shims.js
|
|
10
10
|
var init_esm_shims = __esm({
|
|
11
|
-
"../../node_modules/.store/tsup-virtual-
|
|
11
|
+
"../../node_modules/.store/tsup-virtual-e96d96848d/package/assets/esm_shims.js"() {
|
|
12
12
|
"use strict";
|
|
13
13
|
}
|
|
14
14
|
});
|