score:1
Accepted answer
try explicitly naming the export when you export it, so
export { analytics as analytics };
Source: stackoverflow.com
Related Query
- Export "MyModule" is not defined - on Jest tests
- ReferenceError: React is not defined in jest tests
- URLSearchParams is not defined error when running tests with jest
- ReactJS Jest Puppeteer tests no longer working: ReferenceError: document is not defined
- `regeneratorRuntime` is not defined when running Jest test
- Using jest in my react app, describe is not defined
- reactjs jest jQuery is not defined
- Jest Test Babel Error: Plugin/Preset files are not allowed to export objects
- React + Jest Testing Error - ReferenceError: expect is not defined
- Regexp is not defined in Jest test
- ReferenceError: sessionStorage is not defined in jest unit test case
- React / Jest setUp tests to have windows object as defined
- FormData is not defined in React Jest
- Coverage report for jest unit tests not displaying with --coverage option
- Dispatcher not registering callbacks in jest unit tests
- Storybook: ReferenceError: jest is not defined
- ReferenceError: React not defined in tests
- SyntaxError: Unexpected token export while running tests in Jest with components having amcharts4
- global.location not working in Jest tests
- Create-React-App v3 not running Jest tests with Absolute Imports of other components
- Constants not available for jest tests in Actions
- Jest test case is failing - ReferenceError: Office is not defined
- Jest - ReferenceError: define is not defined
- Why are my firebase emulator get-call promises not resolving in jest unit tests
- Jest not creating snapshot or failing tests
- React jest tests not hitting coverage for api
- React export React.createContext not defined
- React & Jest global.confirm not updating between tests
- JEST- ReferenceError: React is not defined using jest in .NET MVC 4 app
- Jest not finding all tests
More Query from same tag
- How to pass input from React Form to Axios get request and display the request result?
- Setting Array in ReactJS w/ Hooks
- Using Tabs - Tab with Link from next JS (tab indicator not working)
- Getting a non-descript CSS parsing error when attempting to run create-react-app build
- Sort keys into a map in react
- cannot read property "statistics of undefined"
- How to pass a fetched object from App.js to a child component asynchronously in ReactJS v16+
- Correct way to clear interval in component did mount in React
- "npm run build" module parse error "You may need an appropriate loader to handle this file type."
- React get input from form
- React.js How to render component inside component?
- My Stripe react components are not loading
- React API call returns empty response then returns the data
- ReactJS: How to put <input/> inside a Material UI's <TextField/>?
- Cant type in material ui Textfield (react)
- "You are running create-react-app 4.0.3 which is behind the latest release (5.0.0)"
- File Reader not keeping order
- Reactjs: Fetch data from API using helper class and functions
- NavLink/Link from React-router-dom not working (blank screen)
- clearInterval is not clearing the interval
- is it ok to use window.scrollTo() in ReactJS production website?
- Solution: ev.preventDefault is not a function when using dispatch
- How should I use external component module that does not include @type in React?
- TypeError: Cannot read property 'temperature' of null
- How to sent parameter in SwipeableDrawer of material ui in reactjs
- ReactJS : Parsing error: Unexpected token
- how to change hash links javascript
- How to structure routing in react router dom without using the 'exact' parameter?
- Laggy TextField Updates in React
- React.js Unresolved variable in WebStorm