question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No mention of what happened to createRobot in 7.0 release notes

See original GitHub issue

Bug Report

Current Behavior There is no mention of what happened to createRobot in the 7.0 upgrade. We rely on createRobot for unit testing probots. When we upgrade and run existing test suites we see the following error:

TypeError: (0 , _probot.createRobot) is not a function

Expected behavior/code Some deprecation notice or notes in the release about which API to use.

Environment

  • Probot version(s): v7.0.0
  • Node/npm version:Node 8.11.3/yarn 1.7.0
  • OS: OSX

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KevinGrandoncommented, Jul 5, 2018

Sorry, got this working. Thanks again!

1reaction
JasonEtcocommented, Jul 5, 2018

Sorry @KevinGrandon, I meant to go back and fix this. I’ll do that now, but for posterity here’s the replacement:

const { createRobot } = require('probot')
const robot = createRobot()

// is now

const { Application } = require('probot')
const app = new Application()

Also: if you’re using yourApp(robot), you can replace it with app.load(yourApp), its a little nicer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stuck on Step 7 Process Automation Superbadge
What is happening is the following: Trailhead creates 7 Robot_Setup__c records. All of them with Date__c of 24th January 2018 (Wednesday).
Read more >
#RobotFactory - Release Notes! | Brawl Stars
Improved basic attack from 920 to 940 damage · Super - Now charges with 4 attacks instead of 5 · Improved reload speed...
Read more >
SerialLink - Peter Corke
SerialLink is a reference object. SerialLink objects can be used in vectors and arrays. Reference. Robotics, Vision & Control, Chaps 7-9, P. Corke ......
Read more >
Robot Framework User Guide
Note. Prior to Robot Framework 3.2, non-ASCII spaces used in the data were ... variable ${TEST_NAME} within the test itself to refer to...
Read more >
Mattermost legacy self-hosted changelog
This changelog summarizes updates for all self-hosted versions of ... We will no longer provide support for Mattermost Desktop App issues on Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found