File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import {COLORS} from '../../src/functions/colors.js'
44import * as github from '@actions/github'
55import * as core from '@actions/core'
66
7+ vi . mock ( '@actions/github' , { spy : true } )
8+
79const debugMock = vi . spyOn ( core , 'debug' )
810const warningMock = vi . spyOn ( core , 'warning' )
911
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import {COLORS} from '../../src/functions/colors.js'
77import * as postDeploy from '../../src/functions/post-deploy.js'
88import * as contextCheck from '../../src/functions/context-check.js'
99
10+ vi . mock ( '@actions/github' , { spy : true } )
11+
1012const validBooleanInputs = {
1113 skip_completing : false
1214}
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import * as timestamp from '../src/functions/timestamp.js'
2121import * as deploymentConfirmation from '../src/functions/deployment-confirmation.js'
2222import { COLORS } from '../src/functions/colors.js'
2323
24+ vi . mock ( '@actions/github' , { spy : true } )
25+
2426const setOutputMock = vi . spyOn ( core , 'setOutput' )
2527const saveStateMock = vi . spyOn ( core , 'saveState' )
2628const setFailedMock = vi . spyOn ( core , 'setFailed' )
You can’t perform that action at this time.
0 commit comments