File tree Expand file tree Collapse file tree 5 files changed +4
-13
lines changed Expand file tree Collapse file tree 5 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
23
23
HarmCategory ,
24
24
SafetySetting ,
25
25
getGenerativeModel
26
- } from '../src ' ;
26
+ } from '@firebase/ai ' ;
27
27
import { testConfigs , TOKEN_COUNT_DELTA } from './constants' ;
28
28
29
29
describe ( 'Chat Session' , ( ) => {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
23
23
GoogleAIBackend ,
24
24
VertexAIBackend ,
25
25
getAI
26
- } from '../src ' ;
26
+ } from '@firebase/ai ' ;
27
27
import { FIREBASE_CONFIG } from './firebase-config' ;
28
28
29
29
const app = initializeApp ( FIREBASE_CONFIG ) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import {
30
30
InlineDataPart ,
31
31
FileDataPart ,
32
32
BackendType
33
- } from '../src ' ;
33
+ } from '@firebase/ai ' ;
34
34
import {
35
35
AUDIO_MIME_TYPE ,
36
36
IMAGE_MIME_TYPE ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
24
24
Modality ,
25
25
SafetySetting ,
26
26
getGenerativeModel
27
- } from '../src ' ;
27
+ } from '@firebase/ai ' ;
28
28
import { testConfigs , TOKEN_COUNT_DELTA } from './constants' ;
29
29
30
30
describe ( 'Generate Content' , ( ) => {
Original file line number Diff line number Diff line change @@ -21,15 +21,6 @@ const { existsSync } = require('fs');
21
21
22
22
const files = [ `src/**/*.test.ts` ] ;
23
23
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
-
33
24
module . exports = function ( config ) {
34
25
const karmaConfig = {
35
26
...karmaBase ,
You can’t perform that action at this time.
0 commit comments