mirror of
https://github.com/actions/labeler.git
synced 2025-12-15 06:27:13 +00:00
Make jest-each a devDependency (#611)
* Make `jest-each` a devDependency Change the dependency on `jest-each` from a regular dependency to a development dependency (devDependency) as it is only used in tests. * Remove `jest-each` and use `test-each` instead
This commit is contained in:
@@ -3,7 +3,6 @@ import * as github from '@actions/github';
|
||||
import * as core from '@actions/core';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import each from 'jest-each';
|
||||
|
||||
jest.mock('@actions/core');
|
||||
jest.mock('@actions/github');
|
||||
@@ -353,10 +352,10 @@ describe('run', () => {
|
||||
expect(reposMock).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
each([
|
||||
test.each([
|
||||
[new HttpError('Error message')],
|
||||
[new NotFound('Error message')]
|
||||
]).test(
|
||||
])(
|
||||
'should warn if configuration file could not be fetched through the API, log error and fail the action',
|
||||
async error => {
|
||||
const configFilePath = 'non_existed_path/labeler.yml';
|
||||
|
||||
Reference in New Issue
Block a user