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 "// testEnvironment: unset" requirement to the docs

See original GitHub issue

🚀 Feature Proposal

Add // testEnvironment: unset requirement to the docs

Motivation

I’ve just spent many minutes trying to guess why the basic example from the readme caused page is not defined errors — I had testEnvironment: "node" set

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
eddyoccommented, Oct 19, 2020

Er… so… what’s the solution to the ReferenceError: page is not defined problem then?

0reactions
bidoubiwacommented, Jan 25, 2021

I had to refresh my yarn.lock

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Jest
It is recommended to define the configuration in a dedicated JavaScript, TypeScript or JSON file. The file will be discovered automatically, if ...
Read more >
How to config jest jsdom environment? - Stack Overflow
In my case, the solution was: Install this package: jest-environment-jsdom; Add testEnvironment: 'jest-environment-jsdom' into my ...
Read more >
Configuring package.json · Jest
Jest's configuration can be defined in the package.json file of your project or through the --config <path/to/json> option.
Read more >
Setup - Testing Library
In these docs we'll demonstrate configuring Jest, but you should be ... Adding options to your global test config can simplify the setup...
Read more >
Environments and deployments - GitLab Docs
Environments describe where code is deployed. Each time GitLab CI/CD deploys a version of code to an environment, a deployment is created. GitLab:....
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