Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Nov 2, 2023
1 parent 2e9e965 commit b1bf4e6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ plugin/**/dist
plugin/oneapi/test/fixtures/modules/*/oneapi
plugin/dal/test/fixtures/modules/*/dal/

plugin/tegg/test/fixtures/apps/**/*.js
!core/common-util/test/fixtures/**/node_modules
!core/common-util/test/fixtures/**/node_modules/**/*.js
!plugin/*/test/fixtures/**/*.js
Expand All @@ -37,6 +38,5 @@ plugin/dal/test/fixtures/modules/*/dal/
!core/eventbus-decorator/src/type.d.ts
!plugin/orm/test/fixtures/prepare.js
!benchmark/**/*.js
plugin/tegg/test/fixtures/apps/**/*.js
!standalone/standalone/test/fixtures/**/node_modules
!standalone/standalone/test/fixtures/**/node_modules/**/*.js
2 changes: 1 addition & 1 deletion plugin/tegg/test/ModuleConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import mm from 'egg-mock';
import assert from 'assert';
import path from 'path';

describe('test/NoModuleJson.test.ts', () => {
describe('test/ModuleConfig.test.ts', () => {
let app;
const fixtureDir = path.join(__dirname, 'fixtures/apps/inject-module-config');

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';

const path = require('path');

module.exports = function(appInfo) {
const config = {
keys: 'test key',
customLogger: {
xxLogger: {
file: path.join(appInfo.root, 'logs/xx.log'),
},
},
security: {
csrf: {
ignoreJSON: false,
}
},
};
return config;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

exports.tracer = {
package: 'egg-tracer',
enable: true,
};

exports.teggConfig = {
package: '@eggjs/tegg-config',
enable: true,
};

exports.watcher = false;

0 comments on commit b1bf4e6

Please sign in to comment.