atom-community / atom-community/atom-script

How to run a single Mocha test

Open
#1,048 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

When I stand inside a Mocha file and click "Ctrl+Shift+B", I get an error "ReferenceError: describe is not defined". Apparently, Script is trying to run the file with nodejs. How can I tell it to run such files with mocha (without having to select a "mocha" profile each time)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.