@regressionproof/jest-reporter 0.6.2 → 0.6.4

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.
@@ -41,23 +41,13 @@ class RegressionProofReporter {
41
41
  if (typeErrors.length > 0) {
42
42
  console.log(`[RegressionProof] ${typeErrors.length} type error(s) found`);
43
43
  }
44
- try {
45
- const committed = await (0, snapshotter_1.snapshot)({
46
- sourcePath: this.cwd,
47
- mirrorPath: config.mirrorPath,
48
- testResults,
49
- remote: config.remote,
50
- });
51
- if (committed) {
52
- console.log('[RegressionProof] Snapshot captured successfully');
53
- }
54
- else {
55
- console.log('[RegressionProof] No changes to snapshot');
56
- }
57
- }
58
- catch (err) {
59
- console.error('[RegressionProof] Failed to capture snapshot:', err instanceof Error ? err.message : err);
60
- }
44
+ (0, snapshotter_1.snapshot)({
45
+ sourcePath: this.cwd,
46
+ mirrorPath: config.mirrorPath,
47
+ testResults,
48
+ remote: config.remote,
49
+ });
50
+ console.log('[RegressionProof] Snapshot queued');
61
51
  }
62
52
  getLastError() {
63
53
  return undefined;
@@ -47,23 +47,13 @@ export default class RegressionProofReporter {
47
47
  if (typeErrors.length > 0) {
48
48
  console.log(`[RegressionProof] ${typeErrors.length} type error(s) found`);
49
49
  }
50
- try {
51
- const committed = yield snapshot({
52
- sourcePath: this.cwd,
53
- mirrorPath: config.mirrorPath,
54
- testResults,
55
- remote: config.remote,
56
- });
57
- if (committed) {
58
- console.log('[RegressionProof] Snapshot captured successfully');
59
- }
60
- else {
61
- console.log('[RegressionProof] No changes to snapshot');
62
- }
63
- }
64
- catch (err) {
65
- console.error('[RegressionProof] Failed to capture snapshot:', err instanceof Error ? err.message : err);
66
- }
50
+ snapshot({
51
+ sourcePath: this.cwd,
52
+ mirrorPath: config.mirrorPath,
53
+ testResults,
54
+ remote: config.remote,
55
+ });
56
+ console.log('[RegressionProof] Snapshot queued');
67
57
  });
68
58
  }
69
59
  getLastError() {
@@ -7,7 +7,7 @@ export function captureTypeErrors(projectRoot) {
7
7
  return [];
8
8
  }
9
9
  try {
10
- execSync('tsc --noEmit --pretty false', {
10
+ execSync('npx tsc --noEmit --pretty false', {
11
11
  cwd: projectRoot,
12
12
  encoding: 'utf-8',
13
13
  stdio: ['pipe', 'pipe', 'pipe'],
@@ -13,7 +13,7 @@ function captureTypeErrors(projectRoot) {
13
13
  return [];
14
14
  }
15
15
  try {
16
- (0, child_process_1.execSync)('tsc --noEmit --pretty false', {
16
+ (0, child_process_1.execSync)('npx tsc --noEmit --pretty false', {
17
17
  cwd: projectRoot,
18
18
  encoding: 'utf-8',
19
19
  stdio: ['pipe', 'pipe', 'pipe'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regressionproof/jest-reporter",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,7 +35,7 @@
35
35
  "watch.tsc": "tsc -w"
36
36
  },
37
37
  "dependencies": {
38
- "@regressionproof/snapshotter": "^0.6.2",
38
+ "@regressionproof/snapshotter": "^0.6.4",
39
39
  "@sprucelabs/error": "^8.1.2",
40
40
  "@sprucelabs/schema": "^33.1.3",
41
41
  "@sprucelabs/spruce-core-schemas": "^42.1.3",
@@ -82,5 +82,5 @@
82
82
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
83
83
  }
84
84
  },
85
- "gitHead": "97dd0de8de268600fd4727669c045cef16f82d8c"
85
+ "gitHead": "d2f31ff2ccfed75b6b5638510b4bbeebcbe0ec1b"
86
86
  }