Skip to content

Commit cafba1f

Browse files
authored
chore(generative-ai): update ai accuracy tests to typescript (#5640)
1 parent d039cd0 commit cafba1f

File tree

4 files changed

+168
-88
lines changed

4 files changed

+168
-88
lines changed

package-lock.json

+32-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-generative-ai/.depcheckrc

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ ignores:
77
- '@types/chai-dom'
88
- '@types/react'
99
- '@types/react-dom'
10+
- 'p-queue'
1011
ignore-patterns:
1112
- 'dist'

packages/compass-generative-ai/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"depcheck": "compass-scripts check-peer-deps && depcheck",
4444
"check": "npm run typecheck && npm run lint && npm run depcheck",
4545
"check-ci": "npm run check",
46-
"ai-accuracy-tests": "node ./scripts/ai-accuracy-tests.js",
46+
"ai-accuracy-tests": "ts-node ./scripts/ai-accuracy-tests.ts",
4747
"test": "mocha",
4848
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
4949
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
@@ -72,7 +72,9 @@
7272
"@testing-library/user-event": "^13.5.0",
7373
"@types/chai": "^4.2.21",
7474
"@types/chai-dom": "^0.0.10",
75+
"@types/decomment": "^0.9.5",
7576
"@types/mocha": "^9.0.0",
77+
"@types/node-fetch": "^2.6.11",
7678
"@types/react": "^17.0.5",
7779
"@types/react-dom": "^17.0.10",
7880
"@types/sinon-chai": "^3.2.5",
@@ -92,6 +94,7 @@
9294
"prettier": "^2.7.1",
9395
"react-dom": "^17.0.2",
9496
"sinon": "^9.2.3",
97+
"ts-node": "^10.9.1",
9598
"typescript": "^5.0.4",
9699
"xvfb-maybe": "^0.2.1"
97100
},

0 commit comments

Comments
 (0)