Remove redundant test dependency 'jest-each'

This commit is contained in:
Kamat, Trivikram 2025-09-23 19:08:55 -07:00
parent 89d709d423
commit 497723e433
3 changed files with 2 additions and 6 deletions

View File

@ -8,8 +8,6 @@ import fs from 'fs';
import path from 'path';
import osm from 'os';
import each from 'jest-each';
import * as main from '../src/main';
import * as util from '../src/util';
import OfficialBuilds from '../src/distributions/official_builds/official_builds';
@ -93,7 +91,7 @@ describe('main tests', () => {
}, 100000);
describe('getNodeVersionFromFile', () => {
each`
it.each`
contents | expected
${'12'} | ${'12'}
${'12.3'} | ${'12.3'}
@ -110,7 +108,7 @@ describe('main tests', () => {
${'{"volta": {"extends": "./package.json"}}'}| ${'18.0.0'}
${'{"engines": {"node": "17.0.0"}}'} | ${'17.0.0'}
${'{}'} | ${null}
`.it('parses "$contents"', ({contents, expected}) => {
`('parses "$contents"', ({contents, expected}) => {
const existsSpy = jest.spyOn(fs, 'existsSync');
existsSpy.mockImplementation(() => true);

1
package-lock.json generated
View File

@ -33,7 +33,6 @@
"eslint-plugin-node": "^11.1.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-each": "^29.7.0",
"prettier": "^3.6.2",
"ts-jest": "^29.4.1",
"typescript": "^5.4.2"

View File

@ -52,7 +52,6 @@
"eslint-plugin-node": "^11.1.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-each": "^29.7.0",
"prettier": "^3.6.2",
"ts-jest": "^29.4.1",
"typescript": "^5.4.2"