Skip to content

Commit f851be4

Browse files
committed
import from minified @firebase/ai in integration tests
1 parent 28f843c commit f851be4

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

packages/ai/integration/chat.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
HarmCategory,
2424
SafetySetting,
2525
getGenerativeModel
26-
} from '../src';
26+
} from '@firebase/ai';
2727
import { testConfigs, TOKEN_COUNT_DELTA } from './constants';
2828

2929
describe('Chat Session', () => {

packages/ai/integration/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
GoogleAIBackend,
2424
VertexAIBackend,
2525
getAI
26-
} from '../src';
26+
} from '@firebase/ai';
2727
import { FIREBASE_CONFIG } from './firebase-config';
2828

2929
const app = initializeApp(FIREBASE_CONFIG);

packages/ai/integration/count-tokens.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
InlineDataPart,
3131
FileDataPart,
3232
BackendType
33-
} from '../src';
33+
} from '@firebase/ai';
3434
import {
3535
AUDIO_MIME_TYPE,
3636
IMAGE_MIME_TYPE,

packages/ai/integration/generate-content.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
Modality,
2525
SafetySetting,
2626
getGenerativeModel
27-
} from '../src';
27+
} from '@firebase/ai';
2828
import { testConfigs, TOKEN_COUNT_DELTA } from './constants';
2929

3030
describe('Generate Content', () => {

packages/ai/karma.conf.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ const { existsSync } = require('fs');
2121

2222
const files = [`src/**/*.test.ts`];
2323

24-
// Validate that the file that defines the Firebase config to be used in the integration tests exists.
25-
if (argv.integration) {
26-
if (!existsSync('integration/firebase-config.ts')) {
27-
throw new Error(
28-
`integration/firebase-config.ts does not exist. This file must contain a Firebase config for a project with Vertex AI enabled.`
29-
);
30-
}
31-
}
32-
3324
module.exports = function (config) {
3425
const karmaConfig = {
3526
...karmaBase,

0 commit comments

Comments
 (0)