@homebots/jest-config 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,8 @@ on:
6
6
  jobs:
7
7
  release:
8
8
  uses: homebots/workflows/.github/workflows/node-build-release.yml@master
9
+ with:
10
+ build: false
9
11
  secrets:
10
12
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/index.ts CHANGED
@@ -2,11 +2,15 @@ export default {
2
2
  cache: true,
3
3
  clearMocks: true,
4
4
  collectCoverage: true,
5
- coverageDirectory: 'coverage',
6
5
  maxWorkers: 1,
7
- preset: 'ts-jest',
8
- transform: {},
6
+ coverageProvider: 'babel',
7
+ coveragePathIgnorePatterns: [
8
+ '/node_modules/',
9
+ ],
9
10
  extensionsToTreatAsEsm: ['.ts'],
11
+ transform: {
12
+ '^.+\\.ts$': 'ts-jest',
13
+ },
10
14
  slowTestThreshold: 1,
11
15
  coverageThreshold: {
12
16
  global: {
@@ -16,4 +20,7 @@ export default {
16
20
  statements: 100,
17
21
  },
18
22
  },
23
+ moduleFileExtensions: ['js', 'ts'],
24
+ testEnvironment: 'node',
25
+ verbose: false,
19
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebots/jest-config",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Shared Jest configurations",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",