From a939c792dbc20dd5e53d1dd6d09947fad2a37db8 Mon Sep 17 00:00:00 2001 From: yz-yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] fix the test CI (#1405) * run tests without concurrency * do not use cache in rpt2 during test --- package.json | 2 +- packages/rrdom/test/utils.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2eda488f..e210dda8 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "scripts": { "build:all": "NODE_OPTIONS='--max-old-space-size=4096' yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references' 'yarn turbo run prepublish'", - "test": "yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references --check' 'yarn turbo run test'", + "test": "yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references --check' 'yarn turbo run test --concurrency=1'", "test:watch": "yarn turbo run test:watch", "test:update": "yarn turbo run test:update", "format": "yarn prettier --write '**/*.{ts,md}'", diff --git a/packages/rrdom/test/utils.ts b/packages/rrdom/test/utils.ts index 6fe53920..da616a64 100644 --- a/packages/rrdom/test/utils.ts +++ b/packages/rrdom/test/utils.ts @@ -13,6 +13,7 @@ export async function compileTSCode(inputFilePath: string) { resolve() as unknown as rollup.Plugin, _typescript({ tsconfigOverride: { compilerOptions: { module: 'ESNext' } }, + clean: true, }) as unknown as rollup.Plugin, ], });