@naturalcycles/dev-lib 12.17.2 → 12.18.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.
@@ -83,10 +83,11 @@ module.exports = {
83
83
  },
84
84
  testEnvironment: 'node',
85
85
  errorOnDeprecated: true,
86
- // this config would have the snapshot formatter not print a prefix for "Object" and "Array"
87
- // snapshotFormat: {
88
- // printBasicPrototype: false,
89
- // },
86
+ snapshotFormat: {
87
+ // todo: remove when jest@29 makes it default
88
+ escapeString: false,
89
+ printBasicPrototype: false,
90
+ },
90
91
  restoreMocks: true,
91
92
  unmockedModulePathPatterns: [],
92
93
  setupFilesAfterEnv,
@@ -68,7 +68,8 @@ async function runJest(opt = {}) {
68
68
  };
69
69
  if (CI) {
70
70
  args.push('--ci');
71
- if (!integration && !manual) {
71
+ // Works with both --coverage=false and --no-coverage syntaxes
72
+ if (!integration && !manual && !processArgs.some(a => a.includes('-coverage'))) {
72
73
  // Coverage only makes sense for unit tests, not for integration/manual
73
74
  args.push('--coverage');
74
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "12.17.2",
3
+ "version": "12.18.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",