From 6f569401d74b90beaa85d49b8059cf2b54654f2b Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Thu, 17 Mar 2022 18:04:04 +0200 Subject: [PATCH] Remove CommonJS tests with Vitest in core --- packages/core/package.json | 4 +--- packages/core/vitest.config.cjs | 14 -------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 packages/core/vitest.config.cjs diff --git a/packages/core/package.json b/packages/core/package.json index 63de771..e8292fc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,9 +20,7 @@ "test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs", "test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs", "test": "npm run test:jest-cjs && npm run test:jest-esm", - "vitest:cjs": "vitest --config vitest.config.cjs", - "vitest:esm": "vitest --config vitest.config.mjs", - "vitest": "npm run vitest:cjs && npm run vitest:esm" + "vitest": "vitest --config vitest.config.mjs" }, "sideEffects": false, "exports": { diff --git a/packages/core/vitest.config.cjs b/packages/core/vitest.config.cjs deleted file mode 100644 index 6844867..0000000 --- a/packages/core/vitest.config.cjs +++ /dev/null @@ -1,14 +0,0 @@ -const { defineConfig } = require('vitest/config'); - -module.exports = defineConfig({ - resolve: { - mainFields: ['require'], - extensions: ['.cjs'], - }, - test: { - globals: true, - isolate: false, - watch: false, - include: ['**/tests/**/*-test.ts'], - }, -});