declapract-typescript-ehmpathy 0.17.1 → 0.17.2
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.
- package/dist/practices/artifact/best-practice/package.json +1 -1
- package/dist/practices/cicd-deploy-package/best-practice/.github/workflows/publish-on-tag.yml +1 -0
- package/dist/practices/testing/best-practice/jest.acceptance.config.ts +1 -2
- package/dist/practices/testing/best-practice/jest.integration.config.ts +1 -2
- package/dist/practices/testing/best-practice/package.json +4 -4
- package/dist/practices/typescript/best-practice/tsconfig.json +1 -0
- package/package.json +1 -1
|
@@ -2,12 +2,11 @@ import type { Config } from 'jest';
|
|
|
2
2
|
|
|
3
3
|
// https://jestjs.io/docs/configuration
|
|
4
4
|
const config: Config = {
|
|
5
|
-
preset: 'ts-jest', // https://kulshekhar.github.io/ts-jest/docs/getting-started/presets
|
|
6
5
|
verbose: true,
|
|
7
6
|
testEnvironment: 'node',
|
|
8
7
|
moduleFileExtensions: ['js', 'ts'],
|
|
9
8
|
transform: {
|
|
10
|
-
'^.+\\.[tj]sx?$': 'ts-jest',
|
|
9
|
+
'^.+\\.[tj]sx?$': 'ts-jest', // https://kulshekhar.github.io/ts-jest/docs/getting-started/presets
|
|
11
10
|
},
|
|
12
11
|
testMatch: ['**/*.acceptance.test.ts'],
|
|
13
12
|
setupFiles: ['core-js'],
|
|
@@ -2,12 +2,11 @@ import type { Config } from 'jest';
|
|
|
2
2
|
|
|
3
3
|
// https://jestjs.io/docs/configuration
|
|
4
4
|
const config: Config = {
|
|
5
|
-
preset: 'ts-jest', // https://kulshekhar.github.io/ts-jest/docs/getting-started/presets
|
|
6
5
|
verbose: true,
|
|
7
6
|
testEnvironment: 'node',
|
|
8
7
|
moduleFileExtensions: ['js', 'ts'],
|
|
9
8
|
transform: {
|
|
10
|
-
'^.+\\.[tj]sx?$': 'ts-jest',
|
|
9
|
+
'^.+\\.[tj]sx?$': 'ts-jest', // https://kulshekhar.github.io/ts-jest/docs/getting-started/presets
|
|
11
10
|
},
|
|
12
11
|
testMatch: ['**/*.integration.test.ts'],
|
|
13
12
|
setupFiles: ['core-js'],
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"simple-lambda-testing-methods": "@declapract{check.minVersion('0.2.1')}"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test:unit": "jest -c ./jest.unit.config.
|
|
11
|
-
"test:integration": "jest -c ./jest.integration.config.
|
|
12
|
-
"test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.
|
|
10
|
+
"test:unit": "jest -c ./jest.unit.config.ts --forceExit --coverage --verbose --passWithNoTests",
|
|
11
|
+
"test:integration": "jest -c ./jest.integration.config.ts --forceExit --coverage --verbose --passWithNoTests",
|
|
12
|
+
"test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand",
|
|
13
13
|
"test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
|
|
14
|
-
"test:acceptance": "npm run build && jest -c ./jest.acceptance.config.
|
|
14
|
+
"test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand"
|
|
15
15
|
}
|
|
16
16
|
}
|
package/package.json
CHANGED