You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone git@github.com:ToyotaResearchInstitute/materialnet.git
cd materialnet
yarn install
yarn test
# press a to run all tests
What I got
FAIL src/App.test.js
● Test suite failed to run
Jest encountered an unexpected token
This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.
By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".
Here's what you can do:
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/en/configuration.html
Details:
/local/scratch/fraux/code/tests/materialnet/node_modules/lodash-es/lodash.js:10
export { default as add } from './add.js';
^^^^^^
SyntaxError: Unexpected token 'export'
9 | import MenuItem from '@material-ui/core/MenuItem';
10 | import CancelIcon from '@material-ui/icons/Cancel';
> 11 | import { deburr } from 'lodash-es';
| ^
12 | import { ListItemText, ListItemSecondaryAction } from '@material-ui/core';
13 |
14 | // BASED on https://material-ui.com/components/autocomplete/
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)
at Object.<anonymous> (src/components/controls/reactselect.js:11:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 4.044s
Ran all test suites.
System information: Ubuntu 18.04, node 13.8.0, yarn 1.22.0.
The text was updated successfully, but these errors were encountered:
What I did:
What I got
System information: Ubuntu 18.04, node 13.8.0, yarn 1.22.0.
The text was updated successfully, but these errors were encountered: