Skip to content

Commit 0d88138

Browse files
committed
get rid of rawQueryOptions
1 parent 645dde2 commit 0d88138

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

plugins/node/instrumentation-typeorm/test/Connection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const instrumentation = registerInstrumentationTesting(
3232
);
3333

3434
import * as typeorm from 'typeorm';
35-
import { rawQueryOptions } from './utils';
35+
import { defaultOptions } from './utils';
3636

3737
describe('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';

plugins/node/instrumentation-typeorm/test/utils.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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-
};

0 commit comments

Comments
 (0)