Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/github-action-test-helper",
"version": "0.7.16",
"version": "0.7.17",
"description": "Test helper for GitHub Actions.",
"keywords": [
"github",
Expand Down Expand Up @@ -36,16 +36,16 @@
"dependencies": {
"@actions/core": "^1.4.0",
"@actions/github": "^5.0.0",
"@octokit/plugin-rest-endpoint-methods": "^5.3.7",
"@octokit/plugin-rest-endpoint-methods": "^5.4.1",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/js-yaml": "^4.0.1",
"@types/node": "^15.12.5",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"eslint": "^7.29.0",
"@types/jest": "^26.0.24",
"@types/js-yaml": "^4.0.2",
"@types/node": "^16.3.3",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"eslint": "^7.31.0",
"jest": "^27.0.6",
"jest-circus": "^27.0.6",
"ts-jest": "^27.0.3",
Expand Down
26 changes: 14 additions & 12 deletions src/global.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import {ExecException} from 'child_process';

interface Global extends NodeJS.Global {
mockStdout: {
write: jest.Mock;
};
mockChildProcess: {
exec: jest.Mock;
spawn: jest.Mock;
stdout: string | ((command: string) => string);
stderr: string | ((command: string) => string);
error: ExecException | null | ((command: string) => ExecException | null);
code: number | ((command: string) => number);
};
declare global {
interface Global {
mockStdout: {
write: jest.Mock;
};
mockChildProcess: {
exec: jest.Mock;
spawn: jest.Mock;
stdout: string | ((command: string) => string);
stderr: string | ((command: string) => string);
error: ExecException | null | ((command: string) => ExecException | null);
code: number | ((command: string) => number);
};
}
}

declare const global: Global;
Expand Down
Loading