Skip to content

Commit 4f8e9fc

Browse files
authored
test: correct build watch test (#777)
1 parent f25d617 commit 4f8e9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/cli/build-watch/build.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('build --watch should handle add / change / unlink', async () => {
5959
const tempSrcPath = path.join(__dirname, 'test-temp-src');
6060
await fse.remove(tempSrcPath);
6161
await fse.remove(path.join(__dirname, 'dist'));
62-
await fse.copy(path.join(__dirname, 'src'), './test-temp-src');
62+
await fse.copy(path.join(__dirname, 'src'), tempSrcPath);
6363
const tempConfigFile = path.join(__dirname, 'test-temp-rslib.config.mjs');
6464
await fse.remove(tempConfigFile);
6565
fse.outputFileSync(
@@ -82,7 +82,7 @@ describe('build --watch should handle add / change / unlink', async () => {
8282
`,
8383
);
8484

85-
const srcIndexFile = path.join(tempSrcPath, 'index.js');
85+
const srcIndexFile = path.join(tempSrcPath, 'index.ts');
8686
const srcFooFile = path.join(tempSrcPath, 'foo.js');
8787
const distFooFile = path.join(__dirname, 'dist/esm/foo.js');
8888

0 commit comments

Comments
 (0)