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:
Eric Cornelissen
2023-07-11 14:57:50 +02:00
committed by GitHub
parent ac9175f8a1
commit b3ae1bded7
27 changed files with 43 additions and 910 deletions

View File

@@ -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';