Skip to content

Commit d14a4f8

Browse files
committed
test(ai): re-enable e2e tests after VertexAI -> AI move
1 parent 4f483cc commit d14a4f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/ai/e2e/fetch.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const fakeVertexAI = {
2626
},
2727
},
2828
location: 'us-central1',
29+
backend: 'GOOGLE_AI',
2930
};
3031
// See emulator setup: packages/vertexai/lib/requests/request.ts
3132
globalThis.RNFB_VERTEXAI_EMULATOR_URL = true;

tests/app.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (Platform.other) {
3535
platformSupportedModules.push('remoteConfig');
3636
platformSupportedModules.push('analytics');
3737
platformSupportedModules.push('appCheck');
38-
platformSupportedModules.push('vertexai');
38+
platformSupportedModules.push('ai');
3939
// TODO add more modules here once they are supported.
4040
}
4141

@@ -56,7 +56,7 @@ if (!Platform.other) {
5656
platformSupportedModules.push('appCheck');
5757
platformSupportedModules.push('appDistribution');
5858
platformSupportedModules.push('ml');
59-
platformSupportedModules.push('vertexai');
59+
platformSupportedModules.push('ai');
6060
}
6161
// Registering an error handler that always throw unhandled exceptions
6262
// This is to enable Jet to exit on uncaught errors
@@ -227,10 +227,9 @@ function loadTests(_) {
227227
);
228228
remoteConfigTests.keys().forEach(remoteConfigTests);
229229
}
230-
231-
if (platformSupportedModules.includes('vertexai')) {
232-
const vertexaiTests = require.context('../packages/vertexai/e2e', true, /\.e2e\.js$/);
233-
vertexaiTests.keys().forEach(vertexaiTests);
230+
if (platformSupportedModules.includes('ai')) {
231+
const aiTests = require.context('../packages/ai/e2e', true, /\.e2e\.js$/);
232+
aiTests.keys().forEach(aiTests);
234233
}
235234
if (platformSupportedModules.includes('storage')) {
236235
const storageTests = require.context('../packages/storage/e2e', true, /\.e2e\.js$/);

0 commit comments

Comments
 (0)