From da26750176f496623893dad1fb391436b72ae001 Mon Sep 17 00:00:00 2001 From: Aron Date: Sat, 27 Apr 2024 03:36:26 +0800 Subject: [PATCH] Update test configuration for explore-config package --- packages/explore-config/package.json | 2 +- packages/explore-config/tests/test.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/explore-config/package.json b/packages/explore-config/package.json index ec94bfc..de489d6 100644 --- a/packages/explore-config/package.json +++ b/packages/explore-config/package.json @@ -6,7 +6,7 @@ "build:type": "tsc --emitDeclarationOnly --preserveWatchOutput", "build": "pnpm run \"/^build:.*/\"", "dev": "pnpm run \"/^build:.*/\" --watch", - "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", + "test": "jest", "type-check": "tsc --noEmit", "lint": "eslint src" }, diff --git a/packages/explore-config/tests/test.ts b/packages/explore-config/tests/test.ts index 488dad3..755e154 100644 --- a/packages/explore-config/tests/test.ts +++ b/packages/explore-config/tests/test.ts @@ -1,8 +1,6 @@ import { dirname } from 'path' import exploreConfig from '../src' -const __dirname = dirname(new URL(import.meta.url).pathname) - it('read .js config', () => { const config = exploreConfig('./fixtures/master.css', { cwd: __dirname, extensions: ['js'] }) expect(config).toEqual({