Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 11, 2025
1 parent ef00052 commit 02c3c5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

This is an egg plugin for local development, under development environment enabled by default, and closed under other environment.

`egg-development` has been built-in for egg. It is enabled by default.
`@eggjs/development` has been built-in for egg. It is enabled by default.

## Requirements

- egg >= 4.x

## Configuration

Expand Down
6 changes: 3 additions & 3 deletions test/absolute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'node:fs/promises';
import path from 'node:path';
import { scheduler } from 'node:timers/promises';
import { mm, MockApplication } from '@eggjs/mock';
import { getFilepath, DELAY } from './utils.js';
import { getFilepath } from './utils.js';

describe('test/absolute.test.ts', () => {
let app: MockApplication;
Expand Down Expand Up @@ -31,9 +31,9 @@ describe('test/absolute.test.ts', () => {
await fs.mkdir(path.dirname(filepath), { recursive: true });
console.log(`write file to ${filepath}`);
await fs.writeFile(filepath, 'console.log(1);');
await scheduler.wait(DELAY);

await scheduler.wait(1000);
await fs.unlink(filepath);
await scheduler.wait(5000);
app.expect('stdout', /reload worker because .*?b\.js/);
});

Expand Down

0 comments on commit 02c3c5f

Please sign in to comment.