File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff 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 ) => {
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ export class MockConnectorStateManager {
517517 }
518518}
519519
520- /** Default test configuration */
520+ /** @internal */
521521export const DEFAULT_MOCK_CONFIG : MockConnectorConfig = {
522522 token : 'test-token-e2e-12345' ,
523523 npmUser : 'testuser' ,
Original file line number Diff line number Diff 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}' ] ,
Original file line number Diff line number Diff line change 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'
107import { type MockConnectorConfig , initGlobalMockState } from './mock-connector-state'
118
12- export { createMockConnectorApp }
13-
149export class MockConnectorServer {
1510 private baseServer : BaseMockConnectorServer
1611
You can’t perform that action at this time.
0 commit comments