tunnckoCore/gibon

View on GitHub
@tunnckocore/create-jest-runner/src/todo.js

Summary

Maintainability
A
3 hrs
Test Coverage
const toTestResult = require('./toTestResult');

module.exports = function todo({ start, end, test }) {
  return toTestResult({
    stats: {
      failures: 0,
      pending: 0,
      passes: 0,
      todo: 1,
      start,
      end,
    },
    tests: [{ duration: end - start, ...test }],
    jestTestPath: test.path,
  });
};