fix(detector): sending testCase for html #162
Annotations
3 errors and 1 warning
          | 
                      
                        cli/test/cli.test.ts#L25
                      
                       AssertionError: expected '\n> [email protected] cli\n> ts-node …' not to contain 'Error:'
- Expected
+ Received
- Error:
+
+ > [email protected] cli
+ > ts-node src/find-smells.ts fake-data/no-smells/no-smells.test.js javascript --report=html --report-output=.
+
+ Error: ENOENT: no such file or directory, open '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html'
+     at async open (node:internal/fs/promises:639:25)
+     at async Object.readFile (node:internal/fs/promises:1249:14)
+     at async ReadHtml.readTeamplate (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Input.ts:9:18)
+     at async HtmlOutput.writeTo (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Output.ts:13:20)
+     at async SmellsAggreagtor.build (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/SmellsAgreggator.ts:18:7)
+     at async execute (/home/runner/work/smelly-test/smelly-test/cli/src/find-smells.ts:52:7) {
+   errno: -2,
+   code: 'ENOENT',
+   syscall: 'open',
+   path: '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html'
+ }
+ Report HTML generated
+
 ❯ test/cli.test.ts:25:26
 | 
| 
                      
                        cli/test/cli.test.ts#L38
                      
                       AssertionError: expected '\n> [email protected] cli\n> ts-node …' not to contain 'Error:'
- Expected
+ Received
- Error:
+
+ > [email protected] cli
+ > ts-node src/find-smells.ts fake-data/no-smells/**/*test.js javascript --report=html --report-output=/home/runner/work/smelly-test/smelly-test/cli
+
+ Error: ENOENT: no such file or directory, open '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html'
+     at async open (node:internal/fs/promises:639:25)
+     at async Object.readFile (node:internal/fs/promises:1249:14)
+     at async ReadHtml.readTeamplate (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Input.ts:9:18)
+     at async HtmlOutput.writeTo (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Output.ts:13:20)
+     at async SmellsAggreagtor.build (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/SmellsAgreggator.ts:18:7)
+     at async execute (/home/runner/work/smelly-test/smelly-test/cli/src/find-smells.ts:52:7) {
+   errno: -2,
+   code: 'ENOENT',
+   syscall: 'open',
+   path: '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html'
+ }
+ Report HTML generated
+
 ❯ test/cli.test.ts:38:26
 | 
|  | 
| ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636 | 
The logs for this run have expired and are no longer available.
        
      Loading