![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
elm-spec-runner
Advanced tools
Node CLI for Elm-Spec
$ npm install --save-dev elm-spec-runner
Use elm-spec-runner to run elm-spec suites from the command line.
$ elm-spec [options]
By default, elm-spec executes a spec suite in JSDOM. Note that while this is probably the fastest way to execute specs, JSDOM does have limitations. For example, JSDOM does not calculate layout positions for HTML elements, so any specs that describe layout in precise ways may fail unexpectedly.
For the most realistic execution environment, you should run specs in a real browser. To run your
specs in Chromium, simply provide chromium
(or another valid
value) for the --browser
option.
Note: elm-spec
will result in a non-zero exit code if any observations are rejected or an error prevents
the spec suite from running to completion.
--elm
-- Specify path to elm executable. Defaults to elm
--specRoot
-- Specify the root directory for specs; should contain the elm.json file for the specs. Defaults to ./specs
--specs
-- Specify a glob for spec modules, relative to specRoot
. Defaults to ./**/*Spec.elm
--browser
-- Specify the browser environment for the specs: jsdom
, chromium
, webkit
, firefox
. Defaults to jsdom
--visible
-- Show the browser while the specs are running. Does nothing if the browser is jsdom
.
--watch
-- Rerun the spec when files change in directories listed in the source-directories
of your specs' elm.json file.
--parallel
-- Run scenarios in parallel, up to the number of CPU cores. This can lower spec suite
run time for larger spec suites.
--endOnFailure
-- Stop the spec suite run on the first failure.
--css
-- Path to a CSS file to load in the browser, relative to the current directory. You may specify multiple css files.
--help
-- Print options
FAQs
Node CLI for Elm-Spec
The npm package elm-spec-runner receives a total of 2,075 weekly downloads. As such, elm-spec-runner popularity was classified as popular.
We found that elm-spec-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.