Skip to content

Commit f24c10b

Browse files
Tony133jmcdo29
authored andcommitted
chore(): update config jest e2e
1 parent 350eff3 commit f24c10b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apps/http-sample/test/jest-e2e.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ const e2eBaseConfig = require('../../../jest.e2e');
22

33
module.exports = {
44
...e2eBaseConfig,
5+
moduleNameMapper: {
6+
'^axios$': require.resolve('axios'),
7+
},
58
};

jest.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ module.exports = {
77
...baseConfig,
88
rootDir: '..',
99
testMatch: ['<rootDir>/test/**/*.e2e-spec.ts'],
10+
transformIgnorePatterns: ['node_modules/(?!axios)'],
1011
};

0 commit comments

Comments
 (0)