Skip to content

Commit

Permalink
test: correct build watch test (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 authored Feb 20, 2025
1 parent f25d617 commit 4f8e9fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/cli/build-watch/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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');

Expand Down

0 comments on commit 4f8e9fc

Please sign in to comment.