@procore/hammer-test-jest 1.0.0 → 2.0.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 +6 -0
- package/README.md +13 -7
- package/dist/index.js +2 -1
- package/dist/index.mjs +1 -0
- package/dist/transforms/file.mjs +2 -2
- package/dist/transforms/file.test.js +1245 -1229
- package/dist/transforms/file.test.mjs +1245 -1229
- package/dist/transforms/reactSvg.mjs +2 -2
- package/dist/transforms/reactSvg.test.js +1245 -1229
- package/dist/transforms/reactSvg.test.mjs +1245 -1229
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -34,14 +34,20 @@ The plugin supports `@procore/hammer` CLI options, such as:
|
|
|
34
34
|
|
|
35
35
|
Custom configuration is done using the `hammer` configuration file. The customization key is `jestOverride`, and the configuration that should be returned should be compatible with the `jest` format.
|
|
36
36
|
|
|
37
|
-
```
|
|
37
|
+
```ts
|
|
38
|
+
// hammer.config.ts
|
|
39
|
+
|
|
40
|
+
import { type HammerConfig } from '@procore/hammer-types';
|
|
41
|
+
import '@procore/hammer-test-jest';
|
|
42
|
+
|
|
38
43
|
export default {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
}
|
|
44
|
+
testJest(config) {
|
|
45
|
+
return {
|
|
46
|
+
...config,
|
|
47
|
+
// custom config
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
} satisfies HammerConfig;
|
|
45
51
|
```
|
|
46
52
|
|
|
47
53
|
**NOTE**: The default configuration should handle nearly all packages. If
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
|
-
// ../../node_modules/.store/tsup-virtual-
|
|
38
|
+
// ../../node_modules/.store/tsup-virtual-8639aa0ea6/package/assets/cjs_shims.js
|
|
39
39
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
40
40
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
41
|
|
|
@@ -110,6 +110,7 @@ var jestConfigFactory = (pluginOptions, opts) => {
|
|
|
110
110
|
require2.resolve("@babel/preset-react"),
|
|
111
111
|
{
|
|
112
112
|
development: true,
|
|
113
|
+
runtime: "automatic",
|
|
113
114
|
useBuiltIns: true
|
|
114
115
|
}
|
|
115
116
|
],
|
package/dist/index.mjs
CHANGED
package/dist/transforms/file.mjs
CHANGED
|
@@ -6,11 +6,11 @@ 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-8639aa0ea6/package/assets/esm_shims.js
|
|
10
10
|
import path from "path";
|
|
11
11
|
import { fileURLToPath } from "url";
|
|
12
12
|
var init_esm_shims = __esm({
|
|
13
|
-
"../../node_modules/.store/tsup-virtual-
|
|
13
|
+
"../../node_modules/.store/tsup-virtual-8639aa0ea6/package/assets/esm_shims.js"() {
|
|
14
14
|
"use strict";
|
|
15
15
|
}
|
|
16
16
|
});
|