File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
plugins/node/instrumentation-typeorm/test Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const instrumentation = registerInstrumentationTesting(
3232) ;
3333
3434import * as typeorm from 'typeorm' ;
35- import { rawQueryOptions } from './utils' ;
35+ import { defaultOptions } from './utils' ;
3636
3737describe ( 'Connection' , ( ) => {
3838 after ( ( ) => {
@@ -47,7 +47,7 @@ describe('Connection', () => {
4747
4848 describe ( 'single connection' , ( ) => {
4949 it ( 'raw query' , async ( ) => {
50- const options = rawQueryOptions ;
50+ const options = { ... defaultOptions , name : 'rawQuery' } ;
5151 const ds = new typeorm . DataSource ( options ) ;
5252 await ds . initialize ( ) ;
5353 const query = 'select * from user' ;
Original file line number Diff line number Diff line change @@ -40,12 +40,3 @@ export const defaultOptions: any = {
4040 synchronize : true ,
4141 entities : [ User ] ,
4242} ;
43-
44- export const rawQueryOptions : any = {
45- type : 'sqlite' ,
46- database : ':memory:' ,
47- dropSchema : true ,
48- synchronize : true ,
49- entities : [ User ] ,
50- name : 'rawQuery' ,
51- } ;
You can’t perform that action at this time.
0 commit comments