-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log a summary when done. Don't log details to info. Example: `INFO ParentBinLinker Symlinked 0 bin(s) (319 link(s) already exists, 4 different link(s) already exists, 0 error(s)). Run with debug log level for more info.`
- Loading branch information
Showing
6 changed files
with
235 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,55 @@ | ||
{ | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach", | ||
"port": 9229, | ||
"request": "attach", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"type": "pwa-node" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Unit Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--no-timeouts", | ||
"--colors", | ||
"${workspaceRoot}/dist/test/unit/*.js" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRoot}/dist/**/*.js" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Integration Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--no-timeouts", | ||
"--colors", | ||
"${workspaceRoot}/dist/test/integration/*.js" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRoot}/dist/**/*.js" | ||
] | ||
} | ||
] | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach", | ||
"port": 9229, | ||
"request": "attach", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"type": "pwa-node" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Unit Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--no-timeouts", | ||
"--colors", | ||
"${workspaceRoot}/dist/test/unit/*.js" | ||
], | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRoot}/dist/**/*.js" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Integration Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--no-timeouts", | ||
"--colors", | ||
"${workspaceRoot}/dist/test/integration/*.js" | ||
], | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRoot}/dist/**/*.js" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import sinon from 'sinon'; | ||
import { Logger } from 'log4js'; | ||
|
||
export function createLoggerMock(): sinon.SinonStubbedInstance<Logger> { | ||
return { | ||
debug: sinon.stub(), | ||
error: sinon.stub(), | ||
fatal: sinon.stub(), | ||
info: sinon.stub(), | ||
isDebugEnabled: sinon.stub(), | ||
isErrorEnabled: sinon.stub(), | ||
isFatalEnabled: sinon.stub(), | ||
isInfoEnabled: sinon.stub(), | ||
clearContext: sinon.stub(), | ||
isLevelEnabled: sinon.stub(), | ||
isTraceEnabled: sinon.stub(), | ||
isWarnEnabled: sinon.stub(), | ||
log: sinon.stub(), | ||
} as sinon.SinonStubbedInstance<Logger>; | ||
} |
Oops, something went wrong.