diff --git a/semcore/ui/__tests__/index.test.js b/semcore/ui/__tests__/index.test.js index f1d4484a1e..aa2c8b5bba 100644 --- a/semcore/ui/__tests__/index.test.js +++ b/semcore/ui/__tests__/index.test.js @@ -7,9 +7,9 @@ const packageJsonPath = path.resolve(__dirname, '../package.json'); const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')); const semcorePackages = fs - .readdirSync(path.resolve(__dirname, '../../')) - .filter((pkg) => !['ui', 'icon', 'illustration', 'theme'].includes(pkg)) - .map((pkg) => `@semcore/${pkg}`); + .readdirSync(path.resolve(__dirname, '../../'), { withFileTypes: true }) + .filter((entry) => entry.isDirectory() && !['ui', 'icon', 'illustration', 'theme'].includes(entry.name)) + .map((entry) => `@semcore/${entry.name}`) const dependencyPackages = Object.keys(packageJson.dependencies || {}).filter((pkg) => pkg.startsWith('@semcore/'), diff --git a/vitest.config.mts b/vitest.config.mts index ac58ca223f..32dad231b5 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -53,8 +53,7 @@ export default defineConfig({ resolve: vitestResolve, test: { projects: [ - '!semcore/illustration', - 'semcore/*', + 'semcore/*/vitest.config.mts', 'tools/process-css-unplugin', ], testTimeout: 60 * 1000,