Skip to content

Commit

Permalink
fix: use unix slash in github annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 9, 2025
1 parent 02678c6 commit a29115f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reporters/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* file that was distributed with this source code.
*/

import slash from 'slash'
import { relative } from 'node:path'
import { stripVTControlCharacters } from 'node:util'
import { ErrorsPrinter } from '@japa/errors-printer'
Expand Down Expand Up @@ -79,7 +80,7 @@ export class GithubReporter extends BaseReporter {
return this.formatMessage({
command: 'error',
properties: {
file: relative(process.cwd(), mainFrame.fileName!),
file: slash(relative(process.cwd(), mainFrame.fileName!)),
title: error.title,
line: String(mainFrame.lineNumber!),
column: String(mainFrame.columnNumber!),
Expand Down

0 comments on commit a29115f

Please sign in to comment.