From cdb4247b8cb2c4c0f04a3360689340a23992be32 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Mon, 9 May 2022 01:25:21 +0200 Subject: test: prefer jest API instead of jest-each MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- .../resources/impl/__tests__/getDistResources.spec.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/main/src/infrastructure/resources/impl/__tests__') diff --git a/packages/main/src/infrastructure/resources/impl/__tests__/getDistResources.spec.ts b/packages/main/src/infrastructure/resources/impl/__tests__/getDistResources.spec.ts index 635a6b4..8040601 100644 --- a/packages/main/src/infrastructure/resources/impl/__tests__/getDistResources.spec.ts +++ b/packages/main/src/infrastructure/resources/impl/__tests__/getDistResources.spec.ts @@ -20,8 +20,6 @@ import os from 'node:os'; -import { each } from '@sophie/test-utils'; - import Resources from '../../Resources'; import getDistResources from '../getDistResources'; @@ -52,7 +50,7 @@ const [ const fileURLs: [string, string] = [rendererIndexFileURL, rendererRootFileURL]; -each([ +describe.each([ ['not in dev mode', false, undefined, ...fileURLs], [ 'not in dev mode with VITE_DEV_SERVER_URL set', @@ -68,12 +66,12 @@ each([ `${defaultDevServerURL}index.html`, defaultDevServerURL, ], -]).describe( +])( 'when %s', ( _description: string, devMode: boolean, - devServerURL: string, + devServerURL: string | undefined, rendererIndexURL: string, rendererRootURL: string, ) => { -- cgit v1.2.3-54-g00ecf