mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-15 16:31:12 +00:00
add check for packageManager field
This commit is contained in:
parent
9ca6fa06b4
commit
48ed97757d
2 changed files with 22 additions and 9 deletions
|
@ -89,19 +89,19 @@ describe('setup-node', () => {
|
|||
warningSpy = jest.spyOn(core, 'warning');
|
||||
cnSpy.mockImplementation(line => {
|
||||
// uncomment to debug
|
||||
process.stderr.write('write:' + line + '\n');
|
||||
// process.stderr.write('write:' + line + '\n');
|
||||
});
|
||||
logSpy.mockImplementation(line => {
|
||||
// uncomment to debug
|
||||
process.stderr.write('log:' + line + '\n');
|
||||
// process.stderr.write('log:' + line + '\n');
|
||||
});
|
||||
dbgSpy.mockImplementation(msg => {
|
||||
// uncomment to see debug output
|
||||
process.stderr.write(msg + '\n');
|
||||
// process.stderr.write(msg + '\n');
|
||||
});
|
||||
warningSpy.mockImplementation(msg => {
|
||||
// uncomment to debug
|
||||
process.stderr.write('log:' + msg + '\n');
|
||||
// process.stderr.write('log:' + msg + '\n');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue