File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ episodes/
2929* .flac
3030* .ogg
3131
32- # Checked-in TypeScript source files
32+ # Checked-in TypeScript source/test files
3333! src /* .ts
3434! src /** /* .ts
35+ ! tests /* .ts
36+ ! tests /** /* .ts
Original file line number Diff line number Diff line change 1+ import { describe , expect , test } from "vitest" ;
2+ import { execFileSync } from "node:child_process" ;
3+
4+ const smokeTests = [
5+ "tests/test_transcribe_video.sh" ,
6+ "tests/test_prepare_transcript_analysis.sh" ,
7+ "tests/test_scan_podcast.sh" ,
8+ "tests/test_cut_clips.sh" ,
9+ "tests/test_download_sample_media.sh" ,
10+ "tests/test_launcher.sh" ,
11+ ] ;
12+
13+ describe ( "podguy smoke tests" , ( ) => {
14+ for ( const script of smokeTests ) {
15+ test (
16+ script ,
17+ ( ) => {
18+ execFileSync ( "bash" , [ script ] , { stdio : "inherit" } ) ;
19+ expect ( true ) . toBe ( true ) ;
20+ } ,
21+ 180_000 ,
22+ ) ;
23+ }
24+ } ) ;
You can’t perform that action at this time.
0 commit comments