From 75bbab544a2e38ef9d8e37eccb5267ab3ff8d8fb Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Thu, 20 Feb 2025 13:13:57 +0800 Subject: [PATCH] test: correct build watch test --- tests/integration/cli/build-watch/build.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/cli/build-watch/build.test.ts b/tests/integration/cli/build-watch/build.test.ts index 638013c05..a5628e665 100644 --- a/tests/integration/cli/build-watch/build.test.ts +++ b/tests/integration/cli/build-watch/build.test.ts @@ -59,7 +59,7 @@ describe('build --watch should handle add / change / unlink', async () => { const tempSrcPath = path.join(__dirname, 'test-temp-src'); await fse.remove(tempSrcPath); await fse.remove(path.join(__dirname, 'dist')); - await fse.copy(path.join(__dirname, 'src'), './test-temp-src'); + await fse.copy(path.join(__dirname, 'src'), tempSrcPath); const tempConfigFile = path.join(__dirname, 'test-temp-rslib.config.mjs'); await fse.remove(tempConfigFile); fse.outputFileSync( @@ -82,7 +82,7 @@ describe('build --watch should handle add / change / unlink', async () => { `, ); - const srcIndexFile = path.join(tempSrcPath, 'index.js'); + const srcIndexFile = path.join(tempSrcPath, 'index.ts'); const srcFooFile = path.join(tempSrcPath, 'foo.js'); const distFooFile = path.join(__dirname, 'dist/esm/foo.js');