@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @procore/hammer-test-jest
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 239a6b1: test-jest: Use automatic JSX runtime in Jest to resolve the outdated JSX transform warning
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Major Changes
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
- ```js
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
- testJest(originalConfig) {
40
- const customizedConfig =
41
- // ... mutations, transformations, etc.
42
- return customizedConfig;
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-9dc96520b3/package/assets/cjs_shims.js
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
@@ -69,6 +69,7 @@ var jestConfigFactory = (pluginOptions, opts) => {
69
69
  require2.resolve("@babel/preset-react"),
70
70
  {
71
71
  development: true,
72
+ runtime: "automatic",
72
73
  useBuiltIns: true
73
74
  }
74
75
  ],
@@ -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-9dc96520b3/package/assets/esm_shims.js
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-9dc96520b3/package/assets/esm_shims.js"() {
13
+ "../../node_modules/.store/tsup-virtual-8639aa0ea6/package/assets/esm_shims.js"() {
14
14
  "use strict";
15
15
  }
16
16
  });