@naturalcycles/dev-lib 13.4.0 → 13.4.1

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.
@@ -79,6 +79,10 @@ module.exports = {
79
79
  // incremental: true,
80
80
  isolatedModules: true, // faster when run without cache (e.g in CI), 50s vs 83s for NCBackend3 right now
81
81
  babelConfig: false, // https://kulshekhar.github.io/ts-jest/user/config/babelConfig
82
+ tsconfig: {
83
+ sourceMap: true,
84
+ allowJs: true,
85
+ },
82
86
  },
83
87
  },
84
88
  testEnvironment: 'node',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.4.0",
3
+ "version": "13.4.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
package/readme.md CHANGED
@@ -102,8 +102,7 @@ adds `--silent` (and `JEST_SILENT` env var) if all tests are run.
102
102
  `jest-junit` reporter. Includes fix for "CircleCI out of memory issue"
103
103
  - `test-integration`: runs `*.integration.test.ts` with `jest.integration-test.config.js` config.
104
104
  - `test-manual`: runs `*.manual.test.ts` with `jest.manual-test.config.js`.
105
- - `test-leaks`: runs Jest with `--logHeapUsage --detectOpenHandles --detectLeaks` (requires `weak`
106
- module to be installed in target project).
105
+ - `test-leaks`: runs Jest with `--logHeapUsage --detectOpenHandles --detectLeaks`.
107
106
 
108
107
  For unit tests (`yarn test`) these `setupFilesAfterEnv` will be used (if found) in that order:
109
108
 
@@ -196,14 +195,9 @@ These files are meant to be extended in target project, so act as _recommended d
196
195
  - `eslint.config.json`
197
196
  - `jest.config.js`
198
197
 
199
- ## Extending eslint config
198
+ ## eslint
200
199
 
201
- ### Jest
200
+ Presence of `jest` is detected by checking if `node_modules/jest` exists.
202
201
 
203
- ```js
204
- // .eslintrc.js
205
- module.exports = {
206
- extends: ['plugin:jest/recommended'],
207
- plugins: ['jest'],
208
- }
209
- ```
202
+ If exists - `eslint-plugin-jest` recommended config (plus opinionated `dev-lib`'s rules) are
203
+ enabled. Otherwise disabled ( to not cause "jest not found" errors)