mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-11 06:31:12 +00:00
adds path to error output
* fix grammar in README & Advance usage docs * update example in action.yml
This commit is contained in:
parent
cc6b809bd0
commit
4e4d3278fa
6 changed files with 12 additions and 11 deletions
|
@ -624,8 +624,7 @@ describe('setup-node', () => {
|
|||
|
||||
it('should throw an error if node-version-file is not found', async () => {
|
||||
const versionFile = '.nvmrc';
|
||||
const expectedVersionSpec = '14';
|
||||
process.env['GITHUB_WORKSPACE'] = path.join(__dirname);
|
||||
const versionFilePath = path.join(__dirname, '..', versionFile);
|
||||
inputs['node-version-file'] = versionFile;
|
||||
|
||||
inSpy.mockImplementation(name => inputs[name]);
|
||||
|
@ -641,7 +640,7 @@ describe('setup-node', () => {
|
|||
expect(existsSpy).toHaveReturnedWith(false);
|
||||
expect(parseNodeVersionSpy).not.toHaveBeenCalled();
|
||||
expect(cnSpy).toHaveBeenCalledWith(
|
||||
`::error::The specified node version file does not exist${osm.EOL}`
|
||||
`::error::The specified node version file at: ${versionFilePath} does not exist${osm.EOL}`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue