Skip to content

Commit cf6c4ab

Browse files
authored
Remove test-helpers from build (#459)
The test helpers file is showing up in the published package when it should not be. This commit moves it to a directory that is automatically excluded by the TypeScript configuration.
1 parent 4861368 commit cf6c4ab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module.exports = {
88
global: {
99
branches: 75.52,
1010
functions: 92.5,
11-
lines: 92.64,
12-
statements: 92.65,
11+
lines: 92.52,
12+
statements: 92.51,
1313
},
1414
},
1515
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],

src/SmartTransactionsController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ import type {
3030
SmartTransactionsControllerActions,
3131
SmartTransactionsControllerEvents,
3232
} from './SmartTransactionsController';
33-
import { advanceTime, flushPromises, getFakeProvider } from './test-helpers';
3433
import type { SmartTransaction, UnsignedTransaction, Hex } from './types';
3534
import { SmartTransactionStatuses } from './types';
3635
import * as utils from './utils';
3736
import packageJson from '../package.json';
37+
import { advanceTime, flushPromises, getFakeProvider } from '../tests/helpers';
3838

3939
jest.mock('@ethersproject/bytes', () => ({
4040
...jest.requireActual('@ethersproject/bytes'),
File renamed without changes.

0 commit comments

Comments
 (0)