Skip to content

Commit

Permalink
test: try direct imports
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed May 20, 2024
1 parent 5f2ea3a commit f6ab6f0
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 15 deletions.
4 changes: 3 additions & 1 deletion test/bulk.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import assert from 'assert';
import path from 'path';
import fs from './helper/fs';
import { Connection, Date as SfDate, Record } from '../src';
import {Connection} from '../src/connection';
import { SfDate} from '../src/date';
import { Record} from '../src/types';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, isString } from './util';
Expand Down
4 changes: 3 additions & 1 deletion test/bulk2.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import assert from 'assert';
import path from 'path';
import fs from './helper/fs';
import { Connection, Date as SfDate, Schema, Record } from '../src';
import {Connection} from '../src/connection';
import {SfDate} from '../src/date';
import {Schema, Record} from '../src/types';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, isString } from './util';
Expand Down
2 changes: 1 addition & 1 deletion test/connection-crud.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, delay } from './util';
import { insertAccounts } from './bulk.test';
import type { Record, SavedRecord } from '../src';
import type { Record, SavedRecord } from '../src/types/common';

const connMgr = new ConnectionManager(config);
const conn = connMgr.createConnection();
Expand Down
2 changes: 1 addition & 1 deletion test/connection-meta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'assert';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, isString, isNumber, isUndefined } from './util';
import type { Record } from '../src';
import type { Record } from '../src/types/common';

const connMgr = new ConnectionManager(config);
const conn = connMgr.createConnection();
Expand Down
4 changes: 3 additions & 1 deletion test/helper/connection-manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Connection, ConnectionConfig, Schema } from '../../src';
import { Schema } from '../../src/types/schema';
import {Connection, ConnectionConfig} from '../../src/connection';

import UserPool, { UserPoolConfig } from './user-pool';
import { getConnectionConfig } from './connection';

Expand Down
3 changes: 2 additions & 1 deletion test/helper/user-pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Connection, Schema } from '../../src';
import type { Connection } from '../../src/connection';
import type { Schema } from '../../src/types';
import { delay } from '../util';

export type UserPoolConfig = {
Expand Down
2 changes: 1 addition & 1 deletion test/metadata.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';
import assert from 'assert';
import fs from './helper/fs';
import { Connection } from '../src';
import { Connection } from '../src/connection';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, isString } from './util';
Expand Down
2 changes: 1 addition & 1 deletion test/oauth2.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import { OAuth2 } from '../src';
import { OAuth2 } from '../src/oauth2';
import { isString } from './util';
import { isNodeJS } from './helper/env';
import authorize from './helper/webauth';
Expand Down
2 changes: 1 addition & 1 deletion test/query.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import stream from 'stream';
import through2 from 'through2';
import assert from 'assert';
import { SfDate } from '../src';
import { SfDate } from '../src/date';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isString, isNumber } from './util';
Expand Down
2 changes: 1 addition & 1 deletion test/quick-action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'assert';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, isString } from './util';
import type { QuickAction } from '../src';
import type { QuickAction } from '../src/quick-action';

const connMgr = new ConnectionManager(config);
const conn = connMgr.createConnection();
Expand Down
4 changes: 1 addition & 3 deletions test/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import type {
SObjectRecord,
SObjectInputRecord,
SObjectUpdateRecord,
DateString,
Address,
} from '../src';
} from '../src/types';

const connMgr = new ConnectionManager(config);
const conn = connMgr.createConnection<StandardSchema>();
Expand Down
2 changes: 1 addition & 1 deletion test/sobject.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import type { Record } from '../src';
import type { Record } from '../src/types/common';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isObject, isString, isNumber, isBoolean, isUndefined } from './util';
Expand Down
2 changes: 1 addition & 1 deletion test/tooling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'assert';
import ConnectionManager from './helper/connection-manager';
import config from './config';
import { isNumber, isString, isObject } from './util';
import type { Record } from '../src';
import type { Record } from '../src/types/common';
import fs from './helper/fs';
import { isNodeJS } from './helper/env';

Expand Down

0 comments on commit f6ab6f0

Please sign in to comment.