@dword-design/base 11.3.2 → 11.3.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.
@@ -30,7 +30,7 @@ export default async function (options) {
30
30
  await this.depcheck();
31
31
  }
32
32
  const runDockerTests = !isCI() || !(_ref = ['win32', 'darwin'], includes(process.platform)(_ref));
33
- return execa(this.packageConfig.type === 'module' ? packageName`c8` : packageName`nyc`, this.config.testRunner === 'playwright' ? ['playwright', 'test', ...(options.updateSnapshots ? ['--update-snapshots'] : []), ...(options.ui ? ['--ui'] : []), ...(options.uiHost ? ['--ui-host', options.uiHost] : []), ...(options.grep ? ['--grep', options.grep] : []), '--timeout', 130000, '--trace', 'retain-on-failure',
33
+ return execa(this.packageConfig.type === 'module' ? packageName`c8` : packageName`nyc`, this.config.testRunner === 'playwright' ? ['playwright', 'test', ...(options.updateSnapshots ? ['--update-snapshots'] : []), ...(options.ui ? ['--ui'] : []), ...(options.uiHost ? ['--ui-host', options.uiHost] : []), ...(options.grep ? ['--grep', options.grep] : []), '--timeout', 130000, '--trace', 'retain-on-failure', ...(isCI() ? ['--forbid-only'] : []),
34
34
  /**
35
35
  * Reporter set to dot in CI environments by default.
36
36
  * See https://github.com/microsoft/playwright/blob/42ade54975f6990c41cddc7b6e11c46a36648d0d/packages/playwright/src/common/config.ts#L301.
@@ -105,12 +105,11 @@ Object {
105
105
  "run": "pnpm test",
106
106
  },
107
107
  Object {
108
- "if": "failure()",
109
108
  "uses": "actions/upload-artifact@v4",
110
109
  "with": Object {
111
- "name": "Image Snapshot Diffs",
110
+ "name": "Images from tests",
112
111
  "path": "**/__image_snapshots__/__diff_output__
113
- test-results",
112
+ test-results/*/trace.zip",
114
113
  },
115
114
  },
116
115
  Object {
@@ -262,12 +261,11 @@ Object {
262
261
  "run": "pnpm test",
263
262
  },
264
263
  Object {
265
- "if": "failure()",
266
264
  "uses": "actions/upload-artifact@v4",
267
265
  "with": Object {
268
- "name": "Image Snapshot Diffs",
266
+ "name": "Images from tests",
269
267
  "path": "**/__image_snapshots__/__diff_output__
270
- test-results",
268
+ test-results/*/trace.zip",
271
269
  },
272
270
  },
273
271
  Object {
@@ -415,12 +413,11 @@ Object {
415
413
  "run": "pnpm test",
416
414
  },
417
415
  Object {
418
- "if": "failure()",
419
416
  "uses": "actions/upload-artifact@v4",
420
417
  "with": Object {
421
- "name": "Image Snapshot Diffs",
418
+ "name": "Images from tests",
422
419
  "path": "**/__image_snapshots__/__diff_output__
423
- test-results",
420
+ test-results/*/trace.zip",
424
421
  },
425
422
  },
426
423
  Object {
@@ -513,12 +510,11 @@ Object {
513
510
  "run": "pnpm test",
514
511
  },
515
512
  Object {
516
- "if": "failure()",
517
513
  "uses": "actions/upload-artifact@v4",
518
514
  "with": Object {
519
- "name": "Image Snapshot Diffs",
515
+ "name": "Images from tests",
520
516
  "path": "**/__image_snapshots__/__diff_output__
521
- test-results",
517
+ test-results/*/trace.zip",
522
518
  },
523
519
  },
524
520
  Object {
@@ -667,12 +663,11 @@ Object {
667
663
  "run": "pnpm test",
668
664
  },
669
665
  Object {
670
- "if": "failure()",
671
666
  "uses": "actions/upload-artifact@v4",
672
667
  "with": Object {
673
- "name": "Image Snapshot Diffs",
668
+ "name": "Images from tests",
674
669
  "path": "**/__image_snapshots__/__diff_output__
675
- test-results",
670
+ test-results/*/trace.zip",
676
671
  },
677
672
  },
678
673
  Object {
@@ -826,12 +821,11 @@ Object {
826
821
  "run": "pnpm test",
827
822
  },
828
823
  Object {
829
- "if": "failure()",
830
824
  "uses": "actions/upload-artifact@v4",
831
825
  "with": Object {
832
- "name": "Image Snapshot Diffs",
826
+ "name": "Images from tests",
833
827
  "path": "**/__image_snapshots__/__diff_output__
834
- test-results",
828
+ test-results/*/trace.zip",
835
829
  },
836
830
  },
837
831
  Object {
@@ -974,10 +968,9 @@ Object {
974
968
  "run": "yarn test",
975
969
  },
976
970
  Object {
977
- "if": "failure()",
978
971
  "uses": "actions/upload-artifact@v3",
979
972
  "with": Object {
980
- "name": "Image Snapshot Diffs",
973
+ "name": "Images from tests",
981
974
  "path": "**/__image_snapshots__/__diff_output__",
982
975
  },
983
976
  },
@@ -1077,12 +1070,11 @@ Object {
1077
1070
  "run": "pnpm test",
1078
1071
  },
1079
1072
  Object {
1080
- "if": "failure()",
1081
1073
  "uses": "actions/upload-artifact@v4",
1082
1074
  "with": Object {
1083
- "name": "Image Snapshot Diffs",
1075
+ "name": "Images from tests",
1084
1076
  "path": "**/__image_snapshots__/__diff_output__
1085
- test-results",
1077
+ test-results/*/trace.zip",
1086
1078
  },
1087
1079
  },
1088
1080
  Object {
@@ -1175,12 +1167,11 @@ Object {
1175
1167
  "run": "pnpm test",
1176
1168
  },
1177
1169
  Object {
1178
- "if": "failure()",
1179
1170
  "uses": "actions/upload-artifact@v4",
1180
1171
  "with": Object {
1181
- "name": "Image Snapshot Diffs",
1172
+ "name": "Images from tests",
1182
1173
  "path": "**/__image_snapshots__/__diff_output__
1183
- test-results",
1174
+ test-results/*/trace.zip",
1184
1175
  },
1185
1176
  },
1186
1177
  Object {
@@ -26,13 +26,12 @@ export default () => {
26
26
  },
27
27
  run: 'pnpm test'
28
28
  }, {
29
- if: 'failure()',
30
29
  uses: gitHubAction`actions/upload-artifact@v4`,
31
30
  with: {
32
- name: 'Image Snapshot Diffs',
31
+ name: 'Images from tests',
33
32
  path: endent`
34
33
  **/__image_snapshots__/__diff_output__
35
- test-results
34
+ test-results/*/trace.zip
36
35
  `
37
36
  }
38
37
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "11.3.2",
3
+ "version": "11.3.4",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",