@sprucelabs/jest-sheets-reporter 3.0.25 → 3.0.27
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.
|
@@ -45,7 +45,9 @@ class GoogleAdapterTest extends test_1.default {
|
|
|
45
45
|
sheetId: '12345',
|
|
46
46
|
worksheetId: 0,
|
|
47
47
|
value: '100',
|
|
48
|
-
})
|
|
48
|
+
})
|
|
49
|
+
// 'https://theoephraim.github.io/node-google-spreadsheet/#/'
|
|
50
|
+
);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
exports.default = GoogleAdapterTest;
|
|
@@ -43,7 +43,8 @@ class SheetsReporterGoogleAdapter {
|
|
|
43
43
|
resolve();
|
|
44
44
|
}
|
|
45
45
|
catch (err) {
|
|
46
|
-
const isBadKey = err.reason === 'no start line' ||
|
|
46
|
+
const isBadKey = err.reason === 'no start line' ||
|
|
47
|
+
err.code === 'ERR_OSSL_UNSUPPORTED';
|
|
47
48
|
if (isBadKey) {
|
|
48
49
|
reject(new Error(`Bad private key! Checkout this for next steps:\n\nhttps://theoephraim.github.io/node-google-spreadsheet/#/getting-started/authentication`));
|
|
49
50
|
return;
|
|
@@ -79,9 +80,7 @@ class SheetsReporterGoogleAdapter {
|
|
|
79
80
|
async uncachedFetchSpreadsheet(sheetId) {
|
|
80
81
|
const doc = new google_spreadsheet_1.GoogleSpreadsheet(sheetId);
|
|
81
82
|
await doc.useServiceAccountAuth({
|
|
82
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
83
83
|
client_email: this.serviceEmail,
|
|
84
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
85
84
|
private_key: this.privateKey,
|
|
86
85
|
});
|
|
87
86
|
await doc.loadInfo();
|
package/build/constants.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TEST_JEST_FAILED = exports.TEST_JEST_PASSED = void 0;
|
|
4
|
-
// eslint-disable-next-line no-undef
|
|
5
4
|
exports.TEST_JEST_PASSED = 'passed';
|
|
6
|
-
// eslint-disable-next-line no-undef
|
|
7
5
|
exports.TEST_JEST_FAILED = 'failed';
|
|
@@ -4,9 +4,7 @@ export interface ISheetsReporterOptions<TestMap extends ITestMap = ITestMap> {
|
|
|
4
4
|
adapterFilepath?: string;
|
|
5
5
|
testMap: TestMap;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
[testName: string]: string;
|
|
9
|
-
}
|
|
7
|
+
export type ITestMap = Record<string, string>;
|
|
10
8
|
export interface IGoogleSheetsOptions {
|
|
11
9
|
serviceEmail: string;
|
|
12
10
|
privateKey: string;
|
package/package.json
CHANGED
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"namespace": "jest-sheets-reporter",
|
|
11
11
|
"upgradeIgnoreList": [
|
|
12
12
|
"@sprucelabs/spruce-test",
|
|
13
|
-
"
|
|
13
|
+
"google-auth-library",
|
|
14
|
+
"google-spreadsheet"
|
|
14
15
|
]
|
|
15
16
|
},
|
|
16
|
-
"version": "3.0.
|
|
17
|
+
"version": "3.0.27",
|
|
17
18
|
"main": "./build/SheetsReporter.js",
|
|
18
19
|
"types": "./build/SheetsReporter.d.ts",
|
|
19
20
|
"description": "Have your Jest tests update a Google Spreadsheet™®©. 📡",
|
|
@@ -28,56 +29,54 @@
|
|
|
28
29
|
"url": "https://github.com/sprucelabsai/jest-sheets-reporter/issues"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
|
-
"build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
|
|
32
|
+
"build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
|
|
32
33
|
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
|
|
33
|
-
"build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",
|
|
34
|
+
"build.dev": "yarn run build.tsc --sourceMap ; yarn run resolve-paths.lint",
|
|
34
35
|
"build.dist": "yarn run build.tsc",
|
|
35
36
|
"build.resolve-paths": "resolve-path-aliases --target build --patterns '**/*.js,**/*.d.ts'",
|
|
36
|
-
"build.tsc": "yarn build.copy-files && tsc",
|
|
37
|
-
"clean": "yarn clean.build",
|
|
38
|
-
"clean.all": "yarn clean.dependencies && yarn clean.build",
|
|
37
|
+
"build.tsc": "yarn run build.copy-files && tsc",
|
|
38
|
+
"clean": "yarn run clean.build",
|
|
39
|
+
"clean.all": "yarn run clean.dependencies && yarn run clean.build",
|
|
39
40
|
"clean.build": "rm -rf build/",
|
|
40
41
|
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
|
|
41
42
|
"fix.lint": "eslint --fix --cache '**/*.ts'",
|
|
42
43
|
"lint": "eslint --cache '**/*.ts'",
|
|
43
44
|
"lint.tsc": "tsc -p . --noEmit",
|
|
44
|
-
"post.watch.build": "yarn build.copy-files && yarn build.resolve-paths",
|
|
45
|
-
"rebuild": "yarn clean.all && yarn && yarn build.dev",
|
|
45
|
+
"post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths",
|
|
46
|
+
"rebuild": "yarn run clean.all && yarn install && yarn run build.dev",
|
|
46
47
|
"release": "semantic-release",
|
|
47
|
-
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
|
|
48
|
+
"resolve-paths.lint": "yarn run build.resolve-paths ; yarn run lint",
|
|
48
49
|
"test": "jest",
|
|
49
|
-
"update.dependencies": "yarn clean.dependencies && yarn",
|
|
50
|
+
"update.dependencies": "yarn run clean.dependencies && yarn",
|
|
50
51
|
"upgrade.packages": "yarn-upgrade-all && rm -f yarn.lock ; yarn ; yarn fix.lint ; true",
|
|
51
52
|
"upgrade.packages.all": "yarn install && yarn upgrade.packages",
|
|
52
53
|
"upgrade.packages.test": "yarn upgrade.packages.all && yarn lint && yarn build.dev && yarn test",
|
|
53
|
-
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
|
|
54
|
-
"watch.
|
|
55
|
-
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev",
|
|
54
|
+
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'",
|
|
55
|
+
"watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
|
|
56
56
|
"watch.tsc": "tsc -w"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"dotenv": "^16.
|
|
59
|
+
"dotenv": "^16.4.5",
|
|
60
60
|
"google-spreadsheet": "^3.3.0",
|
|
61
61
|
"retry": "^0.13.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@sprucelabs/resolve-path-aliases": "^1.1.123",
|
|
65
|
-
"@sprucelabs/semantic-release": "^4.0.8",
|
|
66
|
-
"@sprucelabs/test": "^7.7.453",
|
|
67
64
|
"@types/google-spreadsheet": "^3.3.2",
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
65
|
+
"@sprucelabs/resolve-path-aliases": "^2.0.7",
|
|
66
|
+
"@sprucelabs/semantic-release": "^5.0.1",
|
|
67
|
+
"@sprucelabs/test": "^9.0.5",
|
|
68
|
+
"@types/node": "^20.12.7",
|
|
69
|
+
"@types/retry": "^0.12.5",
|
|
70
70
|
"chokidar-cli": "^3.0.0",
|
|
71
|
-
"
|
|
72
|
-
"eslint": "^
|
|
73
|
-
"
|
|
74
|
-
"jest": "^29.5.0",
|
|
71
|
+
"eslint": "^9.1.0",
|
|
72
|
+
"eslint-config-spruce": "^11.2.11",
|
|
73
|
+
"jest": "^29.7.0",
|
|
75
74
|
"jest-reporters": "^0.0.2",
|
|
76
|
-
"prettier": "^2.
|
|
77
|
-
"ts-node": "^10.9.
|
|
78
|
-
"tsc-watch": "^6.0
|
|
75
|
+
"prettier": "^3.2.5",
|
|
76
|
+
"ts-node": "^10.9.2",
|
|
77
|
+
"tsc-watch": "^6.2.0",
|
|
79
78
|
"tsconfig-paths": "^4.2.0",
|
|
80
|
-
"typescript": "^5.
|
|
79
|
+
"typescript": "^5.4.5"
|
|
81
80
|
},
|
|
82
81
|
"jest": {
|
|
83
82
|
"testTimeout": 300000,
|