Skip to content

Commit d9cbb98

Browse files
committed
cap
1 parent 69d6d18 commit d9cbb98

File tree

8 files changed

+16268
-28399
lines changed

8 files changed

+16268
-28399
lines changed

package-lock.json

Lines changed: 16249 additions & 28387 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"build": "rollup -c",
5454
"watch": "rollup -cw",
5555
"docgen": "typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck",
56-
"test-sdk": "jest -c jest.config.sdk.js --runInBand",
56+
"test-sdk": "jest -c jest.config.sdk.js --runInBand --logHeapUsage",
5757
"test": "npm run test-sdk",
5858
"posttest": "cat ./coverage/sdk/lcov.info | coveralls",
5959
"is-publish-allowed": "node scripts/is-publish-allowed.js",
@@ -110,18 +110,19 @@
110110
"eslint-config-airbnb-base": "^14.2.0",
111111
"eslint-config-prettier": "^6.15.0",
112112
"eslint-import-resolver-typescript": "^2.3.0",
113+
"eslint-plugin-comment-length": "1.7.3",
113114
"eslint-plugin-import": "^2.22.1",
115+
"eslint-plugin-jsdoc": "^46.9.0",
114116
"eslint-plugin-prettier": "^3.1.4",
115117
"eslint-plugin-react-hooks": "^4.2.0",
116-
"eslint-plugin-comment-length": "1.7.3",
117-
"eslint-plugin-jsdoc": "^46.9.0",
118118
"fs-extra": "^10.0.0",
119119
"gh-pages": "6.3.0",
120120
"highlight.js": "^10.6.0",
121121
"html-to-text": "^8.0.0",
122122
"identity-obj-proxy": "^3.0.0",
123123
"istanbul-merge": "^1.1.1",
124-
"jest": "^26.6.3",
124+
"jest": "^29.0.0",
125+
"jest-environment-jsdom": "^29.7.0",
125126
"jest-fetch-mock": "^3.0.3",
126127
"jsdom": "^17.0.0",
127128
"node-sass": "^8.0.0",
@@ -134,11 +135,11 @@
134135
"react-use-flexsearch": "^0.1.1",
135136
"rollup": "4.24.0",
136137
"rollup-plugin-typescript2": "0.27.3",
137-
"ts-jest": "^26.5.5",
138+
"ts-jest": "^29.0.0",
138139
"ts-loader": "8.0.4",
139140
"typedoc": "0.21.6",
140141
"typedoc-plugin-toc-group": "thoughtspot/typedoc-plugin-toc-group",
141-
"typescript": "^4.9.4",
142+
"typescript": "^5.8.0",
142143
"url-search-params-polyfill": "^8.1.0",
143144
"util": "^0.12.4",
144145
"vite": "^5.3.4"

src/embed/liveboard.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,10 @@ describe('Liveboard/viz embed tests', () => {
740740
await waitFor(() => !!getIFrameEl());
741741

742742
const ts = '__tsEmbed';
743-
expect(document.getElementById(libEmbed.getPreRenderIds().wrapper)[ts]).toEqual(
743+
expect(
744+
// eslint-disable-next-line comma-dangle
745+
(document.getElementById(libEmbed.getPreRenderIds().wrapper) as any)[ts]
746+
).toEqual(
744747
libEmbed,
745748
);
746749

src/embed/ts-embed.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ describe('Unit test case for ts embed', () => {
20122012
});
20132013

20142014
afterAll((): void => {
2015-
window.location = location;
2015+
window.location = location as any;
20162016
});
20172017

20182018
it('get url params for TS', () => {

src/react/all-types-export.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ describe('Exports', () => {
66
});
77

88
it('should not have undefined exports', () => {
9-
Object.keys(Exports).forEach((exportKey) => expect(Boolean(Exports[exportKey])).toBe(true));
9+
Object.keys(Exports).forEach(
10+
(exportKey) => expect(
11+
Boolean((Exports as any)[exportKey]),
12+
).toBe(true),
13+
);
1014
});
1115
});

src/react/index.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ describe('allExports', () => {
285285
it('should not have undefined exports', () => {
286286
Object.keys(allExports).forEach(
287287
(exportKey) => expect(
288-
Boolean(allExports[exportKey]),
288+
Boolean((allExports as any)[exportKey]),
289289
)
290290
.toBe(true),
291291
);

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export const setStyleProperties = (
299299
): void => {
300300
if (!element?.style) return;
301301
Object.keys(styleProperties).forEach((styleProperty) => {
302-
element.style[styleProperty] = styleProperties[styleProperty].toString();
302+
element.style[styleProperty as any] = styleProperties[styleProperty as any].toString();
303303
});
304304
};
305305
/**

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"strictNullChecks": false,
2020
"strictPropertyInitialization": false,
2121
"strictBindCallApply": true,
22-
"suppressImplicitAnyIndexErrors": true,
2322
"noUnusedLocals": false,
2423
"noUnusedParameters": false,
2524
"esModuleInterop": true,

0 commit comments

Comments
 (0)