Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions e2e/storage/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,3 @@ export function modalBox(page: Page) {
export async function headObject(client: S3Client, bucket: string, key: string) {
return client.send(new HeadObjectCommand({ Bucket: bucket, Key: key }));
}

// Re-export expect for convenience
export { expect };
13 changes: 2 additions & 11 deletions e2e/support/mock-oidc-server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { OAuth2Server } from 'oauth2-mock-server';

export const MOCK_OIDC_PORT = 9090;
export const ISSUER_URL = `http://localhost:${MOCK_OIDC_PORT}`;
export const DISCOVERY_URL = `${ISSUER_URL}/.well-known/openid-configuration`;
const MOCK_OIDC_PORT = 9090;
const ISSUER_URL = `http://localhost:${MOCK_OIDC_PORT}`;

let server: OAuth2Server | null = null;

Expand Down Expand Up @@ -65,11 +64,3 @@ export async function startMockOidc(): Promise<string> {

return ISSUER_URL;
}

export async function stopMockOidc(): Promise<void> {
if (server) {
await server.stop();
server = null;
console.log('Mock OIDC server stopped');
}
}
22 changes: 22 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"entry": [
"e2e/auth/auth.setup.ts",
"e2e/support/db-migrations.setup.ts",
"e2e/support/start-mock-oidc.ts",
"e2e/support/start-mock-trino.ts",
"src/lib/editor/grammar/patch-generated.mjs"
],
"ignoreDependencies": [
// Loaded dynamically by pino via a string transport target, not a static import.
"pino-pretty",
// Invoked as a standalone CLI in docker/Dockerfile, not referenced from source.
"@cyclonedx/cyclonedx-npm"
],
"rules": {
"exports": "warn",
"types": "warn",
"enumMembers": "warn",
"duplicates": "warn"
}
}
Loading
Loading