Skip to content

Commit 70b1f28

Browse files
committed
chore: update knip config
1 parent 7963f47 commit 70b1f28

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

cli/src/mock-app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const corsOptions: CorsOptions = {
4242
allowHeaders: ['Content-Type', 'Authorization'],
4343
}
4444

45-
export function createMockConnectorApp(stateManager: MockConnectorStateManager) {
45+
function createMockConnectorApp(stateManager: MockConnectorStateManager) {
4646
const app = new H3()
4747

4848
app.use((event: H3Event) => {

cli/src/mock-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ export class MockConnectorStateManager {
517517
}
518518
}
519519

520-
/** Default test configuration */
520+
/** @internal */
521521
export const DEFAULT_MOCK_CONFIG: MockConnectorConfig = {
522522
token: 'test-token-e2e-12345',
523523
npmUser: 'testuser',

knip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const config: KnipConfig = {
3232
'!test/fixtures/**',
3333
'!test/test-utils/**',
3434
'!test/e2e/helpers/**',
35+
'!cli/src/**',
3536
],
3637
ignoreDependencies: [
3738
'@iconify-json/*',
@@ -56,7 +57,7 @@ const config: KnipConfig = {
5657
ignoreUnresolved: ['#components', '#oauth/config'],
5758
},
5859
'cli': {
59-
project: ['src/**/*.ts!'],
60+
project: ['src/**/*.ts!', '!src/mock-*.ts'],
6061
},
6162
'docs': {
6263
entry: ['app/**/*.{ts,vue}'],

test/e2e/helpers/mock-connector.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
* with global singleton state for Playwright test isolation.
44
*/
55

6-
import {
7-
createMockConnectorApp,
8-
MockConnectorServer as BaseMockConnectorServer,
9-
} from '../../../cli/src/mock-app.ts'
6+
import { MockConnectorServer as BaseMockConnectorServer } from '../../../cli/src/mock-app.ts'
107
import { type MockConnectorConfig, initGlobalMockState } from './mock-connector-state'
118

12-
export { createMockConnectorApp }
13-
149
export class MockConnectorServer {
1510
private baseServer: BaseMockConnectorServer
1611

0 commit comments

Comments
 (0)