Skip to content

Commit

Permalink
chore(e2e): change test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JingyuanZhang committed Feb 22, 2021
1 parent d15ddd0 commit 997ad93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = {
],

// The regexp pattern or array of patterns that Jest uses to detect test files
testRegex: 'integration_tests/(.+)\\.test\\.(js|ts)$',
testRegex: 'tests/(.+)\\.test\\.(js|ts)$',

// This option allows the use of a custom results processor
// testResultsProcessor: undefined,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ describe('e2e test custom model', () => {
};

page.on('console', msg => console.log('PAGE LOG:', msg.text()));
// @ts-ignore

const res = await page.evaluate(async modelInfo => {
const runner = new paddlejsCore.Runner(modelInfo);
const preheatRes = await runner.init();
return preheatRes;
}, modelInfo);

await expect(res).toEqual(expected);
});
});
2 changes: 1 addition & 1 deletion e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../tsconfig",
"include": [
"./integration_tests/**/*.ts"
"./tests/**/*.ts"
],
"exclude": [
"node_modules/"
Expand Down

0 comments on commit 997ad93

Please sign in to comment.