File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1- import { expect } from '@jest/globals'
1+ import { jest } from '@jest/globals'
22import { Annotation } from '../src/annotation.js'
33
44describe ( 'annotation.ts' , ( ) => {
5+ afterEach ( ( ) => {
6+ jest . resetAllMocks ( )
7+ } )
8+
59 it ( 'test Annotation.constructor with Warning' , ( ) => {
610 const annotation = new Annotation (
711 'Warning' ,
Original file line number Diff line number Diff line change 11import { jest } from '@jest/globals'
22import * as path from 'path'
33import { fileURLToPath } from 'url'
4- import { expect } from '@jest/globals'
54import * as core from '../__fixtures__/core.js'
65
76jest . unstable_mockModule ( '@actions/core' , ( ) => core )
Original file line number Diff line number Diff line change 1+ import { jest } from '@jest/globals'
12import * as path from 'path'
23import { fileURLToPath } from 'url'
3- import { expect } from '@jest/globals'
44import { Annotation } from '../src/annotation.js'
55import { parseXmls , parseXml } from '../src/parser.js'
66
77describe ( 'parser.ts' , ( ) => {
88 const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
99
10+ afterEach ( ( ) => {
11+ jest . resetAllMocks ( )
12+ } )
13+
1014 it ( 'test parseXmls' , async ( ) => {
1115 const file1 = path . join ( __dirname , 'resource' , 'lint-results.xml' )
1216 const file2 = path . join ( __dirname , 'resource' , 'empty-results.xml' )
You can’t perform that action at this time.
0 commit comments