Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest errors #4

Open
eDubrovsky opened this issue Apr 8, 2019 · 0 comments
Open

Jest errors #4

eDubrovsky opened this issue Apr 8, 2019 · 0 comments

Comments

@eDubrovsky
Copy link

Hi! I have Test suite failed to run

node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import _extends from "@babel/runtime/helpers/extends";
                                                                                                    ^^^^^^^^

    SyntaxError: Unexpected identifier

      14 |
      15 | @inject('rootStore')
    > 16 | @observer
         |                    ^
      17 | class ProjectPage extends Component {
      18 | 	render() {
      19 | 		const { rootStore } = this.props

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)

My config:

[
			"transform-semantic-ui-react-imports",
			{
				"convertMemberImports": true,
				"importType": "es",
				"addCssImports": true,
				"importMinifiedCssFiles": true,
				"addLessImports": false,
				"addDuplicateStyleImports": false
			}
		]

If i set convertMemberImports and addCssImports to false - test work fine )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant