Skip to content

Commit 34804a1

Browse files
committed
test(cli): import inquirerer test utils directly from @inquirerer/test
The local 'packages/cli/test-utils' barrel was a pure passthrough re-export of @inquirerer/test, which made it look like there was a custom test harness when there wasn't. This points cli.test.ts at @inquirerer/test directly so it's obvious where the helpers come from, and trims test-utils/index.ts down to the genuinely local fixture helpers. No behavioural change — the symbols (KEY_SEQUENCES, setupTests, TestEnvironment) are identical.
1 parent d172d10 commit 34804a1

2 files changed

Lines changed: 4 additions & 17 deletions

File tree

packages/cli/__tests__/cli.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { KEY_SEQUENCES, setupTests, TestEnvironment } from '@inquirerer/test';
12
import { Inquirerer, Question } from 'inquirerer';
23

3-
import { KEY_SEQUENCES, setupTests, TestEnvironment } from '../test-utils';
4-
54
const beforeEachSetup = setupTests();
65

76
describe('Inquirerer', () => {

packages/cli/test-utils/index.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1+
// Local CLI fixture helpers. For inquirerer testing primitives
2+
// (KEY_SEQUENCES, setupTests, createTestEnvironment, snapshot utils, etc.),
3+
// import directly from `@inquirerer/test`.
14
export * from './fixtures';
2-
3-
// Re-export test utilities from @inquirerer/test
4-
export {
5-
KEY_SEQUENCES,
6-
setupTests,
7-
createTestEnvironment,
8-
normalizePackageJsonForSnapshot,
9-
cleanAnsi
10-
} from '@inquirerer/test';
11-
12-
export type {
13-
TestEnvironment,
14-
InputResponse,
15-
NormalizeOptions
16-
} from '@inquirerer/test';

0 commit comments

Comments
 (0)