File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { jest } from '@jest/globals'
22import * as path from 'path'
3- import url from 'url'
3+ import { fileURLToPath } from 'url'
44import { expect } from '@jest/globals'
55import * as core from '../__fixtures__/core.js'
66
@@ -10,7 +10,7 @@ const { run } = await import('../src/main.js')
1010
1111// shows how the runner will run a javascript action with env / stdout protocol
1212describe ( 'main.ts' , ( ) => {
13- const __dirname = path . dirname ( url . fileURLToPath ( import . meta. url ) )
13+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
1414
1515 beforeEach ( ( ) => {
1616 core . getBooleanInput . mockImplementation ( ( name ) => {
Original file line number Diff line number Diff line change 11import path from 'path'
2- import url from 'url'
2+ import { fileURLToPath } from 'url'
33import { expect } from '@jest/globals'
44import { Annotation } from '../src/annotation.js'
55import { parseXmls , parseXml } from '../src/parser.js'
66
77describe ( 'parser.ts' , ( ) => {
8- const __dirname = path . dirname ( url . fileURLToPath ( import . meta. url ) )
8+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
99
1010 it ( 'test parseXmls' , ( ) => {
1111 const file1 = path . join ( __dirname , 'resource' , 'lint-results.xml' )
You can’t perform that action at this time.
0 commit comments