Skip to content

Commit 961cf50

Browse files
committed
test(ai): move mock test data fetch to new ai package name
1 parent 1089a61 commit 961cf50

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter",
1919
"tsc:compile": "tsc --project .",
2020
"lint:all": "yarn lint && yarn lint:markdown && yarn lint:spellcheck && yarn tsc:compile",
21-
"tests:vertex:mocks": "yarn ts-node ./scripts/fetch_ai_mock_responses.ts && yarn ts-node ./packages/vertexai/__tests__/test-utils/convert-mocks.ts",
21+
"tests:ai:mocks": "yarn ts-node ./scripts/fetch_ai_mock_responses.ts && yarn ts-node ./packages/ai/__tests__/test-utils/convert-mocks.ts",
2222
"tests:jest": "jest",
2323
"tests:jest-watch": "jest --watch",
2424
"tests:jest-coverage": "jest --coverage",

scripts/fetch_ai_mock_responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { rimrafSync } from 'rimraf';
2424
// Our test data repository
2525
const REPO_NAME = 'vertexai-sdk-test-data';
2626
const REPO_LINK = `https://github.com/FirebaseExtended/${REPO_NAME}.git`;
27-
const TEST_DATA_ROOT = join(__dirname, '..', 'packages', 'vertexai', '__tests__', 'test-utils');
27+
const TEST_DATA_ROOT = join(__dirname, '..', 'packages', 'ai', '__tests__', 'test-utils');
2828

2929
// Get tags from repository, sorted by tag name, and coerce result to a string, then trim it
3030
const repoTags = (

0 commit comments

Comments
 (0)