Skip to content

Commit d565c52

Browse files
author
Guiners
committed
fixing package.json
1 parent 6fab992 commit d565c52

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

genai/test/safety-with-txt.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ describe('safety-with-txt', () => {
2424
it('should call generateContentStream with safety instructions', async function () {
2525
this.timeout(50000);
2626
const output = await sample.generateWithSafetySettings(projectId);
27-
assert(output.text.length > 0);
27+
assert(output > 0);
2828
});
2929
});

package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
"scripts": {
1515
"lint": "gts check",
1616
"fix": "gts fix",
17-
"test": "echo 'Please run tests in each sample directory.' && exit 1",
17+
"test": "c8 mocha -p -j 2 --timeout 2400000 test/*.test.js test/**/*.test.js",
1818
"generate-ci": "node .github/workflows/utils/generate.js"
1919
},
20+
"dependencies": {
21+
"commander": "^12.0.0",
22+
"eslint": "^8.57.0",
23+
"@google/genai": "1.20.0",
24+
"axios": "^1.6.2",
25+
"google-auth-library": "^10.3.0",
26+
"luxon": "^3.7.1",
27+
"node-fetch": "^2.7.0",
28+
"openai": "^5.19.1",
29+
"supertest": "^7.0.0"
30+
},
2031
"devDependencies": {
2132
"@typescript-eslint/eslint-plugin": "^8.0.0",
2233
"@typescript-eslint/parser": "^8.0.0",
@@ -28,10 +39,10 @@
2839
"mocha": "^10.2.0",
2940
"nunjucks": "^3.2.4",
3041
"prettier": "^3.0.3",
31-
"typescript": "^5.0.4"
32-
},
33-
"dependencies": {
34-
"commander": "^12.0.0",
35-
"eslint": "^8.57.0"
42+
"typescript": "^5.0.4",
43+
"chai": "^4.5.0",
44+
"proxyquire": "^2.1.3",
45+
"sinon": "^18.0.0",
46+
"uuid": "^10.0.0"
3647
}
3748
}

0 commit comments

Comments
 (0)