mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5834] [bug]: [cli test] TEST_SCRIPT_ERROR Script execution failed: SyntaxError: Unexpected token 'export' #2286
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Leon-Luu on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5834
Originally assigned to: @jamesgeorge007 on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
Windows
Bug Description
On CLI testing we are seeing error: TEST_SCRIPT_ERROR Script execution failed: SyntaxError: Unexpected token 'export'
The script in the collection is correct, no issue at all on the UI collection running.
When try to remove the scripts the SyntaxError: Unexpected token 'export' still persist...
Test with:
hopp -v => 0.30.1
Hoppscotch.io latest (2026.1.0)
Deployment Type
Hoppscotch Cloud
Version
No response
@jamesgeorge007 commented on GitHub (Feb 4, 2026):
Thanks for reporting. We’ve identified the root cause, and it will be addressed in the upcoming release.
In the meantime, you can try exporting the collection from the app, removing any script-level
export {};references, re-importing it, and then running it from the CLI with the updated collection ID.@Leon-Luu commented on GitHub (Feb 4, 2026):
That's quick, thanks
@jamesgeorge007 commented on GitHub (Feb 5, 2026):
This is now addressed in Hoppscotch CLI v0.30.2, closing.