@futdevpro/dynamo-eslint 1.14.20 → 1.14.22
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/.c8rc.json +26 -0
- package/futdevpro-dynamo-eslint-1.14.22.tgz +0 -0
- package/package.json +4 -2
- package/scripts/run-coverage-tests.js +24 -0
- package/spec/support/helpers/ts-node-helper.js +9 -0
- package/spec/support/jasmine.coverage.json +23 -0
- package/futdevpro-dynamo-eslint-1.14.20.tgz +0 -0
package/.c8rc.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"reporter": [
|
|
3
|
+
"html",
|
|
4
|
+
"text",
|
|
5
|
+
"lcov"
|
|
6
|
+
],
|
|
7
|
+
"reports-dir": "./coverage",
|
|
8
|
+
"include": [
|
|
9
|
+
"src/**/*.ts"
|
|
10
|
+
],
|
|
11
|
+
"exclude": [
|
|
12
|
+
"src/**/*.spec.ts",
|
|
13
|
+
"src/**/*.spec.js",
|
|
14
|
+
"src/spec/**",
|
|
15
|
+
"**/node_modules/**",
|
|
16
|
+
"**/coverage/**",
|
|
17
|
+
"**/*.d.ts",
|
|
18
|
+
"**/*.const.ts",
|
|
19
|
+
"**/*.enum.ts",
|
|
20
|
+
"**/*.interface.ts",
|
|
21
|
+
"**/*.type.ts",
|
|
22
|
+
"**/index.ts"
|
|
23
|
+
],
|
|
24
|
+
"all": true
|
|
25
|
+
}
|
|
26
|
+
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/dynamo-eslint",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.22",
|
|
4
4
|
"description": "Shared ESLint configs, Dynamo-powered plugin and validators for FutDevPro stacks",
|
|
5
5
|
"author": "Future Development Program Ltd.",
|
|
6
6
|
"license": "ISC",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
"test": "npm run prep && pnpm run build-base && jasmine",
|
|
32
32
|
"test-clean": "pnpm run build-clean && jasmine",
|
|
33
|
+
"test:coverage": "npx c8 --reporter=html --reporter=text --reporter=lcov node scripts/run-coverage-tests.js",
|
|
33
34
|
"test-full": "pnpm run prep && pnpm run test",
|
|
34
35
|
"test-lint": "npm test && npm run lint",
|
|
35
36
|
"test-fix": "npm test && npm run lint:fix",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"prettier": "3.3.0"
|
|
85
86
|
},
|
|
86
87
|
"dependencies": {
|
|
87
|
-
"@futdevpro/fsm-dynamo": "1.14.
|
|
88
|
+
"@futdevpro/fsm-dynamo": "1.14.26",
|
|
88
89
|
"fast-glob": "3.3.2",
|
|
89
90
|
"tslib": "2.8.1"
|
|
90
91
|
},
|
|
@@ -99,6 +100,7 @@
|
|
|
99
100
|
"jasmine": "5.10.0",
|
|
100
101
|
"jasmine-spec-reporter": "7.0.0",
|
|
101
102
|
"rimraf": "5.0.5",
|
|
103
|
+
"ts-node": "~10.9.1",
|
|
102
104
|
"typescript": "5.5.4"
|
|
103
105
|
}
|
|
104
106
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const { execSync } = require('child_process');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const configPath = path.join(__dirname, '../spec/support/jasmine.coverage.json');
|
|
5
|
+
const tsNodeRegister = require.resolve('ts-node/register/transpile-only');
|
|
6
|
+
|
|
7
|
+
const env = {
|
|
8
|
+
...process.env,
|
|
9
|
+
NODE_OPTIONS: `--require ${tsNodeRegister}`
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
execSync(`npx jasmine --config="${configPath}"`, {
|
|
14
|
+
stdio: 'inherit',
|
|
15
|
+
cwd: path.join(__dirname, '..'),
|
|
16
|
+
shell: true,
|
|
17
|
+
env: env
|
|
18
|
+
});
|
|
19
|
+
} catch (error) {
|
|
20
|
+
// Exit with the same status code as jasmine (3 = test failures, 1 = other errors)
|
|
21
|
+
// This allows c8 to still generate coverage reports even if tests fail
|
|
22
|
+
process.exit(error.status || 1);
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"reporters": [
|
|
3
|
+
{
|
|
4
|
+
"name": "jasmine-json-reporter",
|
|
5
|
+
"options": {
|
|
6
|
+
"pretty": true
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"spec_dir": "src/",
|
|
11
|
+
"spec_files": [
|
|
12
|
+
"**/*.spec.ts",
|
|
13
|
+
"**/*[sS]pec.ts"
|
|
14
|
+
],
|
|
15
|
+
"helpers": [
|
|
16
|
+
"spec/support/helpers/ts-node-helper.js"
|
|
17
|
+
],
|
|
18
|
+
"env": {
|
|
19
|
+
"stopSpecOnExpectationFailure": false,
|
|
20
|
+
"random": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
Binary file
|