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.
Overview
src/test-auth0.tsandsrc/test-slack.tsare manual verification scripts —test-auth0.tsprints a banner, instantiatesJwtStrategy, and logs a mock payload through roughly twentyconsole.logcalls. They live insidesrc/, so they are compiled into the production bundle bytsconfig.build.json, scanned by ESLint'ssrc/**/*.tsglob, and counted in coverage. They also import fromsrc/auth/, which means a refactor of the auth module has to keep a throwaway script compiling. Their filenames begin withtest-but they are not Jest tests and are not picked up by any test configuration, so they satisfy neither purpose cleanly.Specifications
Features:
scripts/and are excluded from the production build.src/tree contains only application code.Tasks:
scripts/verify-auth0.tsandscripts/verify-slack.ts.scripts/fromtsconfig.build.json.Impacted Files:
src/test-auth0.tssrc/test-slack.tstsconfig.build.jsonpackage.jsonAcceptance Criteria
src/.dist/output contains no verification script.