---
title: "Elle K (@DevElleUp) | Hashnode"
description: "Elle K (@DevElleUp) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@DevElleUp"
---

@DevElleUp

# Elle K

@DevElleUp · Joined October 2022

## Comments

[Great article! Note: I needed to assign "jest" to the "test" script in my package.json file in order for the npm run test script to work. "scripts": { "test": "jest" }, Out of the box, that comes as "scripts": { "test": "echo \\"Error: no test specified\\" && exit 1" }, Also, I can confirm that in Oct '22, I did not need to create the .bablerc config file. I found this article because I was trying to use spyOn and getting the error: SyntaxError: The requested module jest/globals does not provide an export named spyOn. Installing the plugin to transform ES6 (modules) to CommonJS (@babel/plugin-transform-modules-commonjs) fixed this issue, exposing the spyOn function properly for use in my test files.](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6/comment/63445f466d64be07a724af21)

Comment · Article · Oct 10, 2022 · [How to set up jest for es module](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6)
