From 1d4890953595bc097a7f8f15acf2ee65fd08ac0a Mon Sep 17 00:00:00 2001 From: serhiiz Date: Fri, 17 Jan 2025 23:01:58 +0100 Subject: [PATCH] adjust to esm from mster after rebase --- .mocharc.js => .mocharc.cjs | 0 package.json | 2 +- .../test-kit/fixtures/vite-test-project/vite.config.ts | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) rename .mocharc.js => .mocharc.cjs (100%) diff --git a/.mocharc.js b/.mocharc.cjs similarity index 100% rename from .mocharc.js rename to .mocharc.cjs diff --git a/package.json b/package.json index be70ab15..bc4e84d0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "pretest": "npm run lint && npm run build", "test": "npm run test:browser && npm run test:node", "test:browser": "mocha-web \"packages/*/dist/test/**/*.spec.js\"", - "test:node": "mocha \"packages/*/dist/test/**/*.unit.js\" --detect-open-handles", + "test:node": "mocha \"packages/*/dist/test/**/*.unit.js\"", "prettify": "prettier . --write" }, "devDependencies": { diff --git a/packages/vite-plugin-react-board/test-kit/fixtures/vite-test-project/vite.config.ts b/packages/vite-plugin-react-board/test-kit/fixtures/vite-test-project/vite.config.ts index 89cbc73a..73ee4109 100644 --- a/packages/vite-plugin-react-board/test-kit/fixtures/vite-test-project/vite.config.ts +++ b/packages/vite-plugin-react-board/test-kit/fixtures/vite-test-project/vite.config.ts @@ -5,10 +5,4 @@ import coduxPlugin from '@wixc3/vite-plugin-react-board'; // https://vite.dev/config/ export default defineConfig({ plugins: [coduxPlugin(), react()], - optimizeDeps: { - // because test project does not have own node modules there is a problem with optimizing this dependency - // and it need to be manually added. This happens only in test project without node modules. - // in real project with node_modules optimization works out of the box - include: ['@wixc3/react-board'], - }, });