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.

setupFiles do not transform by babel-jest

See original GitHub issue

🐛 Bug Report

To Reproduce

when i config in jest.config.js, i set setupFiles is ["<rootDir>/test/setup"] such as:

module.exports = {
  setupFiles: ["<rootDir>/test/setup"],
  moduleFileExtensions: ["js", "vue", "jsx", "json"],
  ...
}

but i see the setup.js do not transfer by es6, so i can’t use ‘import’

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
eranimocommented, Mar 31, 2021

This is still an issue

2reactions
SimenBcommented, Jan 14, 2020

No reproduction has been provided, the parts asking for it in the template was just deleted.

Please provide a minimal reproduction when opening issues

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Jest
While code transformation is applied to the linked setup-file, Jest will not transform any code in node_modules . This is due to the...
Read more >
Jest setupTestFrameworkScriptFile or setupFiles ES6 syntax
I am new to jest. I encounter the error on circle CI. My setup.js file has ES6 syntax. Since the file on setupTestFrameworkScriptFile...
Read more >
Configuring package.json · Jest
If the test path matches any of the patterns, it will not be transformed. These pattern strings match against the full path. Use...
Read more >
Getting jest to respect transformIgnorePatterns inside .bs.js file
bs.js file where the transform ignore is not really working. Anyone have any ideas?
Read more >
Configuring Jest compiled - w3resource
When you are using the --config option, the JSON file should not contain a "jest" key: ... Jest does not transform any code...
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