Skip to content

Move the test-auth0 and test-slack verification scripts out of src/ #1046

Description

@RUKAYAT-CODER

Overview

src/test-auth0.ts and src/test-slack.ts are manual verification scripts — test-auth0.ts prints a banner, instantiates JwtStrategy, and logs a mock payload through roughly twenty console.log calls. They live inside src/, so they are compiled into the production bundle by tsconfig.build.json, scanned by ESLint's src/**/*.ts glob, and counted in coverage. They also import from src/auth/, which means a refactor of the auth module has to keep a throwaway script compiling. Their filenames begin with test- but they are not Jest tests and are not picked up by any test configuration, so they satisfy neither purpose cleanly.

Specifications

Features:

  • Manual verification scripts live under scripts/ and are excluded from the production build.
  • The src/ tree contains only application code.

Tasks:

  • Move both files to scripts/verify-auth0.ts and scripts/verify-slack.ts.
  • Exclude scripts/ from tsconfig.build.json.
  • Add npm scripts documenting how to run each verification.
  • Convert the assertions into real Jest tests if the behaviour they check is worth guarding, and delete the scripts if it is not.
  • Confirm the production bundle no longer contains them.

Impacted Files:

  • src/test-auth0.ts
  • src/test-slack.ts
  • tsconfig.build.json
  • package.json

Acceptance Criteria

  • Neither file remains under src/.
  • The compiled dist/ output contains no verification script.
  • Each script is runnable through a documented npm script.
  • Coverage figures no longer include these files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions