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.

Add test for error message when no pages are found

See original GitHub issue

https://github.com/cloudfour/lighthouse-parade/pull/30#issuecomment-700145996

import { scan } from './scan-task'
test('Displays useful error if no pages are found while crawling', () => {
  const result = await scan('https://nonexistent-website.com')
  expect(result.error).toMatch(/No pages were found for this site/)
})

We can get away with it for this test, but it’s hacky for tests to make live requests. Also very slow. Sooner than later we need to figure out a way to do this the right way. So maybe we take our time with that future issue when we get there.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
emersonthiscommented, Oct 12, 2020

I’ll create a new issue…

1reaction
emersonthiscommented, Oct 12, 2020

@calebeby how do you feel about taking this on?

Read more comments on GitHub >

github_iconTop Results From Across the Web

40 Clever 404 Error Pages From Real Websites - HubSpot Blog
Inspire your own designs by taking a look at some of the best 404 error messages on the web.
Read more >
How to Create a Spectacular 404 Error Page (with 12 Examples)
Type a URL that does not exist on your website to load the page. Whatever you do, please don't opt for any of...
Read more >
How To Find & Fix 404 Errors On Your Website | Matthew Edgar
Begin by creating a custom variable to extract the page's title. Next, create a trigger to detect any title that matches the 404...
Read more >
Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >
How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The Error 404 Not Found status code indicates that the origin server did not find the target resource. Check out these common causes...
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