@procore/hammer-test-jest 0.12.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,23 @@
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
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - d10edb3: First general release. No breaking changes from prior releases.
14
+
15
+ ### Patch Changes
16
+
17
+ - d6e8e38: Upgrades dependencies.
18
+ - Updated dependencies [d10edb3]
19
+ - @procore/hammer-types@1.0.0
20
+
3
21
  ## 0.12.0
4
22
 
5
23
  ### Minor Changes
package/README.md CHANGED
@@ -4,7 +4,7 @@ The [jest][jest] implementation of the `test` commands.
4
4
 
5
5
  ## Quick Start
6
6
 
7
- Run `test` commands from the `hammer` command. If this package is not already installed, or is out-of-date, you will be prompted to install/upgrade.
7
+ Run the `test` command from the `hammer`. If this package is not already installed, or is out-of-date, you will be prompted to install/upgrade.
8
8
 
9
9
  Alternatively, you can install it directly:
10
10
 
@@ -12,6 +12,12 @@ Alternatively, you can install it directly:
12
12
  yarn add -D @procore/hammer-test-jest
13
13
  ```
14
14
 
15
+ ## Commands
16
+
17
+ `hammer test`
18
+
19
+ Run your projects unit tests
20
+
15
21
  ## CLI Options
16
22
 
17
23
  The plugin supports `@procore/hammer` CLI options, such as:
@@ -28,14 +34,20 @@ The plugin supports `@procore/hammer` CLI options, such as:
28
34
 
29
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.
30
36
 
31
- ```js
37
+ ```ts
38
+ // hammer.config.ts
39
+
40
+ import { type HammerConfig } from '@procore/hammer-types';
41
+ import '@procore/hammer-test-jest';
42
+
32
43
  export default {
33
- testJest(originalConfig) {
34
- const customizedConfig =
35
- // ... mutations, transformations, etc.
36
- return customizedConfig;
37
- }
38
- }
44
+ testJest(config) {
45
+ return {
46
+ ...config,
47
+ // custom config
48
+ };
49
+ },
50
+ } satisfies HammerConfig;
39
51
  ```
40
52
 
41
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
  });