Skip to content

Commit

Permalink
export Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 28, 2024
1 parent 702fa37 commit f13e910
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "egg",
"version": "4.0.0-beta.7",
"version": "4.0.0-beta.8",
"engines": {
"node": ">= 18.19.0"
},
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

import { BaseContextClass } from './lib/core/base_context_class.js';
import { startEgg } from './lib/start.js';
import Helper from './app/extend/helper.js';

// export extends
export { Helper };

// export types
export * from './lib/egg.js';
Expand Down
3 changes: 3 additions & 0 deletions test/asyncSupport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { strict as assert } from 'node:assert';
import { createApp, restore, MockApplication } from './utils.js';

describe('test/asyncSupport.test.ts', () => {
// Skip on Windows
if (process.platform === 'win32') return;

afterEach(restore);
let app: MockApplication;
before(async () => {
Expand Down
3 changes: 3 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('test/index.test.ts', () => {
'Controller',
'EggApplicationCore',
'EggLogger',
'Helper',
'Master',
'Request',
'Response',
Expand All @@ -26,5 +27,7 @@ describe('test/index.test.ts', () => {
'startCluster',
'startEgg',
]);

assert(egg.Context);
});
});

0 comments on commit f13e910

Please sign in to comment.