Skip to content

Commit

Permalink
fix(e2e): 修复小鹅 wxa/core 2.1.4 mock在fecth定义之后的问题,导致录制的时候mock不到fetch请求
Browse files Browse the repository at this point in the history
re #80
  • Loading branch information
fanniehuang committed Jun 22, 2021
1 parent 8543004 commit 2d6bf7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/wxa-cli/src/tester/e2eTester.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ class TesterScheduler extends Schedule {

this.perf.markEnd(relativeSrc);

// Inject test suite into app.js
if (dep.meta && dep.meta.source === this.APP_SCRIPT_PATH) {
this.tryWrapWXATestSuite(dep);
}
if (dep.meta && dep.meta.source === this.APP_CONFIG_PATH) {
this.tryAddGlobalTestComponent(dep);
}

// try to wrap wxa every app and page
this.tryWrapWXA(dep);
this.tryAddPolyfill(dep);
// Inject test suite into app.js
if (dep.meta && dep.meta.source === this.APP_SCRIPT_PATH) {
this.tryWrapWXATestSuite(dep);
}

// Todo: conside if cache is necessary here.
// debug('dep to process %O', dep);
Expand Down

0 comments on commit 2d6bf7c

Please sign in to comment.