adds path to error output

* fix grammar in README & Advance usage docs
* update example in action.yml
This commit is contained in:
La'Kaleigh Harris 2021-11-16 23:43:08 +00:00 committed by GitHub
parent cc6b809bd0
commit 4e4d3278fa
6 changed files with 12 additions and 11 deletions

View file

@ -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}`
);
});
});