@naturalcycles/dev-lib 13.4.1 → 13.5.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.
Files changed (2) hide show
  1. package/cfg/jest.config.js +14 -14
  2. package/package.json +2 -2
@@ -56,7 +56,20 @@ if (runInIDE) {
56
56
  module.exports = {
57
57
  transform: {
58
58
  // '^.+\\.js$': 'babel-jest',
59
- '^.+\\.tsx?$': 'ts-jest',
59
+ '^.+\\.tsx?$': [
60
+ 'ts-jest',
61
+ {
62
+ diagnostics: false,
63
+ // compilerHost: true, // disabled, cause its effects are not detected/understood yet
64
+ // incremental: true,
65
+ isolatedModules: true, // faster when run without cache (e.g in CI), 50s vs 83s for NCBackend3 right now
66
+ babelConfig: false, // https://kulshekhar.github.io/ts-jest/user/config/babelConfig
67
+ tsconfig: {
68
+ sourceMap: true,
69
+ allowJs: true,
70
+ },
71
+ },
72
+ ],
60
73
  // example (experimental):
61
74
  // '^.+\\.ts$': '@naturalcycles/dev-lib/cfg/jest.esbuild.transformer.js',
62
75
  },
@@ -72,19 +85,6 @@ module.exports = {
72
85
  '@src/(.*)$': '<rootDir>/src/$1',
73
86
  },
74
87
  skipNodeResolution: true,
75
- globals: {
76
- 'ts-jest': {
77
- diagnostics: false,
78
- // compilerHost: true, // disabled, cause its effects are not detected/understood yet
79
- // incremental: true,
80
- isolatedModules: true, // faster when run without cache (e.g in CI), 50s vs 83s for NCBackend3 right now
81
- babelConfig: false, // https://kulshekhar.github.io/ts-jest/user/config/babelConfig
82
- tsconfig: {
83
- sourceMap: true,
84
- allowJs: true,
85
- },
86
- },
87
- },
88
88
  testEnvironment: 'node',
89
89
  errorOnDeprecated: true,
90
90
  snapshotFormat: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.4.1",
3
+ "version": "13.5.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -61,7 +61,7 @@
61
61
  "stylelint-config-prettier": "^9.0.3",
62
62
  "stylelint-config-standard-scss": "^5.0.0",
63
63
  "timekeeper": "^2.2.0",
64
- "ts-jest": "^28.0.0",
64
+ "ts-jest": "^29.0.0",
65
65
  "typescript": "^4.0.2",
66
66
  "yargs": "^17.0.0"
67
67
  },