Skip to content

Commit

Permalink
chore: Add required fields in test result, reorder deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark1626 committed Aug 19, 2019
1 parent b444350 commit 73ce8ae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/transform/transform-testrunner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"testRunner": "<rootDir>/test-runner.ts"
},
"dependencies": {
"@babel/preset-typescript": "^7.0.0",
"@babel/preset-env": "^7.0.0"
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.0.0"
}
}
11 changes: 11 additions & 0 deletions e2e/transform/transform-testrunner/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ export default async function testRunner(
): Promise<TestResult> {
return {
...emptyTestResult(),
numPassingTests: 1,
testFilePath: testPath,
testResults: [
{
ancestorTitles: [],
duration: 2,
failureMessages: [],
fullName: 'sample test',
status: 'passed',
title: 'sample test',
},
],
};
}
2 changes: 1 addition & 1 deletion e2e/transform/transform-testrunner/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"module": "commonjs",
}
}

0 comments on commit 73ce8ae

Please sign in to comment.