Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Aug 31, 2023
1 parent 373496d commit c8cd68d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/specs/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export default testSuite(async ({ describe }, fixturePath: string) => {
'index.js': `
console.log('start');
const sleepSync = (delay) => {
const waitTo = Date.now() + delay;
while (Date.now() < waitTo) {}
const waitTill = Date.now() + delay;
while (Date.now() < waitTill) {}
};
process.on('exit', () => {
sleepSync(300);
Expand Down Expand Up @@ -147,7 +147,7 @@ export default testSuite(async ({ describe }, fixturePath: string) => {
tsxProcess.stderr!.on('data', onStdOut);
});

expect(stdout).toBe('\u001Bcstart\nend\n');
expect(stdout).toMatch(/start[\s\S]+end/);
}, 10_000);

describe('help', ({ test }) => {
Expand Down

0 comments on commit c8cd68d

Please sign in to comment.